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.
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!
-----------------------------------------------------------------------------------------------------------------------