Skip to content

Commit

Permalink
fix(run-davinci): Check for Nvidia GPU first (#101)
Browse files Browse the repository at this point in the history
Right now, this shouldn't actually have a big effect on things, since
we're not applying any Nvidia-specific workarounds in `run-davinci` at
the moment, but in the future, if we need to for e.g. laptops with Intel
iGPUs + Nvidia dGPUs, we'll want to check for the Nvidia GPU first.
  • Loading branch information
zelikos authored Jul 8, 2024
1 parent 58d5202 commit 921b578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system_files/usr/bin/run-davinci
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export QT_QPA_PLATFORM=xcb
gpu_type=""

get_gpu_type () {
if [[ -n $(glxinfo -B | grep -i AMD) ]]; then
if [[ -n $(glxinfo -B | grep -i nvidia) ]]; then
gpu_type="nvidia"
elif [[ -n $(glxinfo -B | grep -i AMD) ]]; then
gpu_type="amd"
elif [[ -n $(glxinfo -B | grep -i Intel) ]]; then
gpu_type="intel"
elif [[ -n $(glxinfo -B | grep -i nvidia) ]]; then
gpu_type="nvidia"
fi
}

Expand Down

0 comments on commit 921b578

Please sign in to comment.