# Coral yocto opencl & gpu driver

**URL:** <https://hub.mender.io/t/coral-yocto-opencl-gpu-driver/3020>\
**Category:** General Discussions\
**Created:** [December 22, 2020, 1:02pm UTC](https://hub.mender.io/t/coral-yocto-opencl-gpu-driver/3020 "2020-12-22T13:02:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mender-coral](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@mender-coral](https://hub.mender.io/u/mender-coral)\
**Post date:** [December 22, 2020, 1:02pm UTC](https://hub.mender.io/t/coral-yocto-opencl-gpu-driver/3020/1 "2020-12-22T13:02:07Z")

</div>

Hi,

I’ve managed to setup a yocto distribution using the coral layer provided by mender. I’m attempting to use opencl on that platform.

However the resulting image doesn’t have the required files in /etc/Opencl/vendors, even after installing the deb packages by hand that I would have used on mendel OS, to install the opencl environment.

I’ve also tried to include the packages in the bitbake build process by adding: clinfo, ocl-icd-opencl-dev & opencl-clhpp-headers into the CORE\_IMAGE\_EXTRA\_INSTALL variable on my local.conf file, but that results in an error message such as:

“ERROR: Nothing RPROVIDES ‘ocl-icd-opencl-dev’…”

when running

“bitbake core-image-full-cmdline”

I also tried to add those dependencies under /sources/meta-coral/meta-coral-demo/recipes/coral-images/coral-demo-image.bb, but those changes are never getting included when running bitbake.

How would I go about adding these packages to the yocto image build? and is there a driver included for the vivante gpu in the coral layer or do I have to add that by hand as well?

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [December 22, 2020, 1:52pm UTC](https://hub.mender.io/t/coral-yocto-opencl-gpu-driver/3020/2 "2020-12-22T13:52:57Z")

</div>

Drivers for vivante GPU are provided by [https://github.com/Freescale/meta-freescale](https://github.com/Freescale/meta-freescale).

You can try building [fsl-image-multimedia](https://github.com/Freescale/meta-freescale-distro/blob/master/recipes-fsl/images/fsl-image-multimedia.bb) which includes GPU drivers and example/benchmark programs.
