Step 5: Generate and Set Up Module Files
Generate and Set up Modules for oneAPI Components
Follow the instructions provided in Using Module Files to Set Up Your Development Environment for use with oneAPI Toolkits.
Set Up Modules for Compute Drivers for Intel GPUs
For correct operation of the Intel Compute Runtime, make sure to properly set the following environment variables: PATH, LD_LIBRARY_PATH, and OCL_ICD_VENDORS or OCD_ICD_FILENAMES.
For example, the module file for the Intel Compute Runtime that was installed into <install_directory> in Step 2 looks as follows (replace <install_directory> with the actual directory and <version> with a version, if available):
#%Module1.0 # ### Intel Compute Runtime example modulefile # module-whatis "Intel(R) Graphics Compute Runtime for OpenCL and Level0, version <version>" conflict intel-compute-runtime set INSTALL_DIR "<install_directory>" prepend-path PATH "$INSTALL_DIR/usr/bin" prepend-path PKG_CONFIG_PATH "$INSTALL_DIR/usr/lib64/pkgconfig" prepend-path LD_LIBRARY_PATH "$INSTALL_DIR/usr/lib64" prepend-path LD_LIBRARY_PATH "$INSTALL_DIR/usr/lib64/intel-opencl" setenv OCL_ICD_VENDORS "$INSTALL_DIR/etc/OpenCL/vendors"