Installation Guide

  • 2021.4
  • 09/27/2021
  • Public Content

Install OpenCL™ Offline Compiler (OCLOC)

This topic targets Linux* users who want to use Ahead-of-Time (AOT) Compilation to generate binaries for one or multiple selected devices. For details about the AOT feature, please refer to the Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference.
There are currently three operating systems supported:
The instructions to install the Install OpenCL™ Offline Compiler (OCLOC) are listed below.

RHEL 8.0

To access OCLOC packages, add the repository to your system and then install the packages using DNF. Root permission is required.
cat << EOF | sudo tee /etc/yum.repos.d/intel-graphics.repo [intel-graphics] name=Intel Graphics Drivers Repository baseurl=https://repositories.intel.com/graphics/rhel/8.0/ enabled=1 gpgcheck=0 EOF sudo dnf install intel-ocloc

Ubuntu 18.04

For Ubuntu 18.04, the distribution is bionic in the repository line below.
To access OCLOC packages, add the repository to your system and install the packages using apt. Root permission is required.
cat << EOF | sudo tee /etc/apt/sources.list.d/intel-graphics.list deb [trusted=yes arch=amd64] https://repositories.intel.com/graphics/ubuntu bionic main EOF sudo apt-get update sudo apt-get install intel-ocloc

Ubuntu 19.10

For Ubuntu 19.10, the distribution is
eoan
in the repository line below.
To access OCLOC packages, add the repository to your system and install the packages using apt. Root permission is required.
cat << EOF | sudo tee /etc/apt/sources.list.d/intel-graphics.list deb [trusted=yes arch=amd64] https://repositories.intel.com/graphics/ubuntu eoan main EOF sudo apt-get update sudo apt-get install intel-opencl-icd

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.