How To Install opencl-headers on Fedora 36
Introduction
In this tutorial we learn how to install opencl-headers
on Fedora 36.
What is opencl-headers
OpenCL (Open Computing Language) header files.
We can use yum
or dnf
to install opencl-headers
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install opencl-headers.
Install opencl-headers on Fedora 36 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 Fedora 36 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 Fedora 36
To uninstall only the opencl-headers
package we can use the following command:
sudo dnf remove opencl-headers
opencl-headers Package Contents on Fedora 36
/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_half.h
/usr/include/CL/cl_icd.h
/usr/include/CL/cl_layer.h
/usr/include/CL/cl_platform.h
/usr/include/CL/cl_va_api_media_sharing_intel.h
/usr/include/CL/cl_version.h
/usr/include/CL/opencl.h
/usr/include/CL/opencl.hpp
References
Summary
In this tutorial we learn how to install opencl-headers
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).