some installation instructions compiled over the internet. I will keep on adding
###Install the required drivers
sudo apt-get install -y gpg-agent wget
wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | sudo apt-key add -
sudo apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main'
sudo apt-get update sudo apt-get install intel-opencl-icd intel-level-zero-gpu level-zero intel-media-va-driver-non-free libmfx1
sudo apt-get install libigc-dev intel-igc-cm libigdfcl-dev libigfxcmrt-dev level-zero-dev
stat -c "%G" /dev/dri/render*
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
Specify the packages to install. Here Base Toolkit and HPC Toolkit were installed. Installation of Base Toolkit took a long time.
sudo apt install intel-basekit
sudo apt install intel-hpckit
To use the Intel compilers, execute the following. Appending this to ~/.bashrc will save you the trouble of running it every time.
source /opt/intel/oneapi/setvars.sh
ifort --version
icc --version
icpc --version