Skip to content

Commit

Permalink
If we find an Arc GPU, we need to install the Intel drivers just like…
Browse files Browse the repository at this point in the history
… if we find an intel iGPU
  • Loading branch information
karbowiak committed May 22, 2023
1 parent d4e7048 commit 98a4425
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions overlay/etc/cont-init.d/60-configure_gpu_driver.sh
Expand Up @@ -17,7 +17,10 @@ export nvidia_gpu_name=$(nvidia-smi --format=csv --query-gpu=name --id="${gpu_se
export nvidia_host_driver_version="$(nvidia-smi 2> /dev/null | grep NVIDIA-SMI | cut -d ' ' -f3)"

# Intel params
# This figures out if it's an intel CPU with integrated GPU
export intel_cpu_model="$(lscpu | grep 'Model name:' | grep -i intel | cut -d':' -f2 | xargs)"
# We need to check if the user has an intel ARC GPU as well
export intel_gpu_model="$(lspci | grep -i "VGA compatible controller: Intel" | cut -d':' -f3 | xargs)"

# AMD params
export amd_cpu_model="$(lscpu | grep 'Model name:' | grep -i amd | cut -d':' -f2 | xargs)"
Expand Down Expand Up @@ -127,6 +130,13 @@ if [[ ! -z ${intel_cpu_model} ]]; then
else
echo "**** No Intel device found ****";
fi
# Intel Arc
if [[ ! -z ${intel_gpu_model} ]]; then
echo "**** Found Intel device '${intel_gpu_model}' ****";
install_intel_gpu_driver
else
echo "**** No Intel device found ****";
fi
# AMD GPU
if [[ ! -z ${amd_gpu_model} ]]; then
echo "**** Found AMD device '${amd_gpu_model}' ****";
Expand Down

0 comments on commit 98a4425

Please sign in to comment.