AnsweredAssumed Answered

opencl on imx6dl cann't work

Question asked by zhang haijian on Oct 14, 2018
Latest reply on Oct 15, 2018 by igorpadykov

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.

Outcomes