opencl on imx6dl cann't work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

opencl on imx6dl cann't work

715 Views
zhanghaijian
Contributor II

Hi,all

I run into trouble  about Opencl on imx6dl with the 4.1.15_2.1.0_ga BSP.pls give som help.

test codes:

cl_uint num_devices;
clGetDeviceIDs( platforms[i], CL_DEVICE_TYPE_ALL, 1, NULL, &num_devices );
printf( "Platform_index = %d has %d devices \n", platform_index, num_devices );
clGetDeviceIDs( platforms[i], CL_DEVICE_TYPE_CPU, 1, NULL, &num_devices );
printf( "Platform_index = %d has %d cpu devices \n", platform_index, num_devices );
clGetDeviceIDs( platforms[i], CL_DEVICE_TYPE_GPU, 1, NULL, &num_devices );
printf( "Platform_index = %d has %d gpu devices \n", platform_index, num_devices );
clGetDeviceIDs( platforms[i], CL_DEVICE_TYPE_ACCELERATOR, 1, NULL, &num_devices );
printf( "Platform_index = %d has %d ACCELERATOR devices \n", platform_index, num_devices );
clGetDeviceIDs( platforms[i], CL_DEVICE_TYPE_DEFAULT, 1, NULL, &num_devices );
printf( "Platform_index = %d has %d DEFAULT devices \n", platform_index, num_devices );

the logs:

Platform_index = 0 has 0 devices 
Platform_index = 0 has 0 cpu devices 
Platform_index = 0 has 0 gpu devices 
Platform_index = 0 has 0 ACCELERATOR devices 
Platform_index = 0 has 0 DEFAULT devices 

BR.

Haijian.

Labels (1)
0 Kudos
Reply
1 Reply

580 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhang

please check guidelines on

i.MX6 idiot-proof dev image for OpenCL 

https://community.nxp.com/docs/DOC-93984 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply