Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added verbose modprobe command and fixed #151 #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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