> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gpuhub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCL

> OpenCL is a tool that will enable you to perform parallel general-purpose computing on GPUs or other compliant hardware accelerators.

<img src="https://mintcdn.com/gpuhub/r1V0ko0l9sh4RwWM/images/logo-opencl.png?fit=max&auto=format&n=r1V0ko0l9sh4RwWM&q=85&s=564272472b016913622e3f5c4bc4278c" alt="" width="143" height="64" data-path="images/logo-opencl.png" />

If your program uses OpenCL and it fails to work properly after installing OpenCL, you can handle it in the following way:
First, check if the nvidia-opencl dynamic link library exists:

```bash bash theme={null}
ldconfig -p | grep nvidia-opencl
```

If there is output, it means the library exists (if it does not exist, there is an issue with the system environment; please contact customer service). Then execute the following commands:

```bash bash theme={null}
mkdir -p /etc/OpenCL/vendors
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
```

Finally, check again if OpenCL can be used normally. If it still cannot be used, please contact customer service.
