poclcc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
poclcc: command not found
or when using sudo you get the following error message
sudo: poclcc: command not found
Solutions to poclcc: command not found
How To Fix poclcc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu poclcc is provided by libpocl-dev package.
libpocl-dev is:
Portable Computing Language is an open source implementation of the OpenCL standard which can be easily adapted for new targets. One of the goals of the project is improving performance portability of OpenCL programs, avoiding the need for target-dependent manual optimizations. A “native” target is included, which allows running OpenCL kernels on the host (CPU).
This package provides the development files for the pocl library. Unless very specific needs, this package is useless. This package is only required to link directly and explicitly with pocl.
To develop OpenCL programs (that can be run with pocl), the opencl-dev virtual package (provided by ocl-icd-opencl-dev for example) is required, not this one.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libpocl-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libpocl-dev.
sudo apt -y install libpocl-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libpocl-dev
Summary
In this tutorial we learn how to fix poclcc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.