AnsweredAssumed Answered

clGetDeviceIDs() API with GPU argument,numDevices is showing 0

Question asked by kvraju on Dec 18, 2013

Hi All,

 

i am trying to run opencl example on my laptop(it has AMD radeon 8670 graphics card) with opensuse 12.3.

i have installed catalyst 13.11 beta version and ADM_APPSDK_v2.9 .

 

snippet code:

 

main(){

..

status = clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 0, NULL, &numDevices);

...

}

 

as for my understanding from the above snippet code if the GPU is available then "numDevices" should show the count of the GPU's present in my laptop.

 

if i run application as user space

numDevices is showing '0'

 

if i run same application as root user

numDevices is showing '1'

 

 

is there any issue with the installation of the graphic driver ?

 

Could you please help me on this issue.

 

Thanks

Outcomes