cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

k_ma0990
Journeyman III

About clGetDeviceIDs in OpenCL

Hello
My PC (Windows 10) has two AMD Redion Pro WX8200.
I want to distribute processing to these two GPUs with OpenCL.


clGetPlatformIDs(0, NULL, &num_platforms) can get one platform.
The CL_PLATFORM_NAME that can be obtained with clGetPlatformInfo is "AMD Accelerated Parallel Processing".

When I run clGetDeviceIDs(clSelectedPlatformID, CL_DEVICE_TYPE_DEFAULT, 0, NULL, &num_device) on that platform, I get only one device.
I think I can get two devices, but can I get only one?
I have confirmed that one GPU is working when I run the program on the acquired device.

 

0 Likes
1 Solution
dipak
Big Boss

Hi @k_ma0990 ,

Thank you for the query. I have whitelisted you and moved the post to the AMD OpenCL forum.

Please try the line below to see if it returns all the GPU devices on the platform.

clGetDeviceIDs(clSelectedPlatformID, CL_​DEVICE_​TYPE_​GPU, 0, NULL, &num_device)

Thanks.

View solution in original post

0 Likes
2 Replies
dipak
Big Boss

Hi @k_ma0990 ,

Thank you for the query. I have whitelisted you and moved the post to the AMD OpenCL forum.

Please try the line below to see if it returns all the GPU devices on the platform.

clGetDeviceIDs(clSelectedPlatformID, CL_​DEVICE_​TYPE_​GPU, 0, NULL, &num_device)

Thanks.

0 Likes

thank you. By modifying it I was able to get num_device=2 and solved it.