clGetPlatformIDs failed

When try to get opencl device params met an error, and after debuging the program I found that the program exit when call clGetPlatformIDs at src/runtime/opencl/

Can anyone give some help?

After debuging,I found that it was failed when call GetDeviceIDs, it returnd with an erorr: “CL_DEVICE_NOT_FOUND”.

However, I can find the OpenCL Platform and Device by a test program linking with the same OpenCL library.

Can anyone give some idea.

I just use an AMD GPU.