Skip to content

Commit

Permalink
Merge pull request #41 from karbowiak/intel_arc
Browse files Browse the repository at this point in the history
#39 - Intel Arc Support
  • Loading branch information
Josh5 committed May 24, 2023
2 parents d4e7048 + 98a4425 commit 6a2d551
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 6a2d551

Please sign in to comment.