Skip to content
Snippets Groups Projects

Intel oneAPI Base Toolkit bare-metal installation

Intel oneAPI basekit

Follow the recipe provided by Intel.

For example:

  • download the shell script for a Linux "Online installer", version 2024.1.0.
  • run it with the recommended silent options,
  • add . /opt/intel/oneapi/setvars.sh --include-intel-llvm in your .bashrc.

Check that the installation seems OK with sycl-ls.

Note: when trying myself the recipe above, sycl-ls does not show the Intel iGPU. I wonder why.

Additional tests can be done for what concerns CPU:

# move to the top directory
cd GrayScottSyclSetup/

# check CPU nodes
cd CheckOneApi
./intel.bash 1

Cuda

One way to proceed, for example for Ubuntu :

# Repo preparation:  Driver Version: 555.42.02    CUDA Version: 12.5 
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
mv -f cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda-repo-ubuntu2204-12-5-local_12.5.0-555.42.02-1_amd64.deb
dpkg -i cuda-repo-ubuntu2204-12-5-local_12.5.0-555.42.02-1_amd64.deb
cp /var/cuda-repo-ubuntu2204-12-5-local/cuda-*-keyring.gpg /usr/share/keyrings/

# Installations apt-get
apt-get update
apt-get install -y cuda-toolkit-12-5
rm -rf /var/lib/apt/lists/*

# Check your card
nvidia-smi

Codeplay plugin for NVidia

Get the installer from https://developer.codeplay.com/products/oneapi/nvidia/download, and run it with sh ....

Then check with sycl-ls that your NVidia card is now seen by SYCL.

Additional tests :

# move to the top directory
cd GrayScottSyclSetup/

# check CPU nodes
cd CheckOneApi
./cuda.bash 2