Step 3: Adjust Location of Intel Graphics Compute Runtime
The single-node installation assumes that the Intel Graphics Compute Runtime drivers are installed in system directories, which are subdirectories of /usr, and the ICD configuration files in /etc/OpenCL/vendors. On a cluster, to share these files across all compute nodes and to store them on a network shared file system, you need to:
Set up the environment variables for users on a cluster as demonstrated below by changing some of the environment variables and passing the location of the ICD repository to the OpenCL* Installable Client Driver. The commands below set the environment variables for users on a cluster, where <install_dir> is the directory used in the previous step:
export DRIVERLOC=<install_directory> export OCL_ICD_VENDORS=$DRIVERLOC/etc/OpenCL/vendors/ export OCL_ICD_FILENAMES=$OCL_ICD_FILENAMES:\ $DRIVERLOC/usr/lib64/intel-opencl/libigdrcl.so export LD_LIBRARY_PATH=$DRIVERLOC:$LD_LIBRARY_PATH
where <install_dir> is the directory used in the previous step.
Pass the location of the ICD repository to the OpenCL* Installable Client Driver. To do this, update the <install_directory>/etc/OpenCL/vendors/intel.icd file to point to the correct location of libigdrcl.so:
find <install_dir> -name 'libigdrcl.so' > \ <install_dir>/etc/OpenCL/vendors/intel.icd