OpenCL with yocto build on IMX-6QUAD

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

OpenCL with yocto build on IMX-6QUAD

Jump to solution
3,998 Views
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!

Labels (2)
0 Kudos
1 Solution
1,381 Views
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.

View solution in original post

0 Kudos
1 Reply
1,382 Views
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 Kudos