opencl on imx6dl cann't work

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

opencl on imx6dl cann't work

719 次查看
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.

标签 (1)
0 项奖励
回复
1 回复

584 次查看
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 项奖励
回复