Skip to content

Commit

Permalink
Added verbose modprobe command and fixed Witko#151
Browse files Browse the repository at this point in the history
  • Loading branch information
afro-coder committed Mar 7, 2021
1 parent 270b6c0 commit 1af1d91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nvidia-xrun
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,20 @@ function turn_on_gpu {
}

function load_modules {
execute "sudo nvidia-modprobe"
execute "sudo nvidia-persistenced"
for module in "${MODULES_LOAD[@]}"
do
echo "Loading module ${module}"
execute "sudo modprobe ${module}"
execute "sudo modprobe -v -s ${module}"
done
}

function unload_modules {
for module in "${MODULES_UNLOAD[@]}"
do
echo "Unloading module ${module}"
execute "sudo modprobe -r ${module}"
execute "sudo modprobe -v -s -r ${module}"
done
}

Expand Down

0 comments on commit 1af1d91

Please sign in to comment.