To install the Intel OpenCL SDK on Red Hat Enterprise Linux (RHEL), follow the steps outlined below. Note that administrative privileges are needed for the installation, and the exact steps may vary based on the version of RHEL and the Intel OpenCL SDK.
Step 1: Download Intel OpenCL SDK
- Go to the Intel oneAPI Base Toolkit download page. Intel’s OpenCL SDK is now part of the oneAPI Base Toolkit.
- Select the version suitable for your system (Linux) and download the installer.
Step 2: Run the Installer
- After downloading the installer, give it executable permissions.
chmod +x <downloaded-installer-filename>
BashExecute the installer.
sudo ./<downloaded-installer-filename>
Bash- Follow the on-screen instructions to complete the installation. You may have to accept license agreements and choose installation options as per your requirements.
Step 3: Set the Environment Variables
- Load the environment variables.
source /opt/intel/oneapi/setvars.sh
Bash~/.bashrc
or~/.bash_profile
) to automatically set the environment variables at login.
Step 4: Verify Installation
- Verify the installation by running a sample OpenCL program or using an OpenCL information utility such as
clinfo
.- You can install
clinfo
on RHEL using:
- You can install
sudo yum install clinfo
BashThen, run clinfo
to display information about the OpenCL platforms and devices on your system.
clinfo
BashIf the installation is successful and correctly configured, clinfo
should list the Intel OpenCL platforms and devices available on your system.
Step 5: Development and Compilation
- For development, you can use the Intel oneAPI DPC++ Compiler to compile and run your OpenCL programs.
- Consult the Intel oneAPI Documentation for further details on using the toolkit to develop, compile, and run OpenCL programs.
Note:
- If you encounter issues, ensure your system meets the minimum requirements for the Intel oneAPI Base Toolkit, and refer to the official Intel oneAPI and OpenCL documentation for troubleshooting.
- Ensure that your system has the necessary kernel headers and development packages installed.