OpenCL with yocto build on IMX-6QUAD

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

OpenCL with yocto build on IMX-6QUAD

跳至解决方案
5,102 次查看
albanderuaz
Contributor I

Hi!

I've been trying to use opencl on my IMX6-QUAD with yocto Fido R3.

I am building the fsl-image-qt5-minimal on which I have added IMAGE_INSTALL_append = "imx-gpu-viv" in conf/local.conf.

I can build the opencl "hello world" posted here​ on the host, but when I execute the application in the IMX, it complains that libraries that should have been populated in the rootfs by the imx-gpu-viv recipe are missing (such as libOpenCL.so)

If I manually add these libraries in /usr/lib on the IMX (which are created when making the image, but not stored in my rootfs), the sample application crashes stating there are no valid opencl platforms on this system.

Doing a "modprobe galcore" does not change anything (how can I check if it even loads?)

I suspect the imx-gpu-viv package does not install correctly, but I don't know why, no errors are reported during the bit-baking of the fsl-image-qt5-minimal image.

Vivante GPU is enabled in the kernel.

When running /unit_tests/gpu.sh on the IMX, the script complains that /opt/viv_samples is missing (this folder should have been added by the imx-gpu-viv recipe)

Thank you for your help!

标签 (2)
0 项奖励
回复
1 解答
2,485 次查看
albanderuaz
Contributor I

Found the solution, imx-gpu-viv creates rpm files in the build directory. Doing a rpm -i on the imx with

libclc-mx6-5.0.11.p7.1+hfp-r0.cortexa9hf_vfp_neon_mx6qdl.rpm

libopencl-mx6-5.0.11.p7.1+hfp-r0.cortexa9hf_vfp_neon_mx6qdl

installed what was needed, and the OpenCL examples now run correctly on my IMX.

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,486 次查看
albanderuaz
Contributor I

Found the solution, imx-gpu-viv creates rpm files in the build directory. Doing a rpm -i on the imx with

libclc-mx6-5.0.11.p7.1+hfp-r0.cortexa9hf_vfp_neon_mx6qdl.rpm

libopencl-mx6-5.0.11.p7.1+hfp-r0.cortexa9hf_vfp_neon_mx6qdl

installed what was needed, and the OpenCL examples now run correctly on my IMX.

0 项奖励
回复