Skip to content

Instantly share code, notes, and snippets.

@fabriciorsf
Last active July 19, 2024 19:07
Show Gist options
  • Save fabriciorsf/b9e14ab8a8b31d02ca6897e60dddc0ae to your computer and use it in GitHub Desktop.
Save fabriciorsf/b9e14ab8a8b31d02ca6897e60dddc0ae to your computer and use it in GitHub Desktop.
#!/bin/bash
# https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2024-2/configure-wsl-2-for-gpu.html
sudo apt install -y clinfo
clinfo | head -n 5
sudo apt install -y gpg-agent wget
wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu $(lsb_release -cs) arc" | sudo tee /etc/apt/sources.list.d/intel.gpu.$(lsb_release -cs).list
sudo apt update
sudo apt install -y intel-opencl-icd intel-level-zero-gpu level-zero intel-media-va-driver-non-free libmfx1 libmfxgen1 libvpl2 libegl-mesa0 libegl1-mesa libegl1-mesa-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri libglapi-mesa libgles2-mesa-dev libglx-mesa0 libigdgmm12 libxatracker2 mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers va-driver-all
sudo apt install -y libigc-dev intel-igc-cm libigdfcl-dev libigfxcmrt-dev level-zero-dev
clinfo | head -n 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment