How To Install opencl-headers on Rocky Linux 8
Introduction
In this tutorial we learn how to install opencl-headers
on Rocky Linux 8.
What is opencl-headers
OpenCL (Open Computing Language) header files.
We can use yum
or dnf
to install opencl-headers
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install opencl-headers.
Install opencl-headers on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install opencl-headers
using dnf
by running the following command:
sudo dnf -y install opencl-headers
Install opencl-headers on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install opencl-headers
using yum
by running the following command:
sudo yum -y install opencl-headers
How To Uninstall opencl-headers on Rocky Linux 8
To uninstall only the opencl-headers
package we can use the following command:
sudo dnf remove opencl-headers
opencl-headers Package Contents on Rocky Linux 8
/usr/include/CL
/usr/include/CL/cl.h
/usr/include/CL/cl.hpp
/usr/include/CL/cl2.hpp
/usr/include/CL/cl_egl.h
/usr/include/CL/cl_ext.h
/usr/include/CL/cl_ext_intel.h
/usr/include/CL/cl_gl.h
/usr/include/CL/cl_gl_ext.h
/usr/include/CL/cl_platform.h
/usr/include/CL/cl_va_api_media_sharing_intel.h
/usr/include/CL/opencl.h
References
Summary
In this tutorial we learn how to install opencl-headers
on Rocky Linux 8 using yum and dnf.