Let my HOME alone 1/2
This commit is contained in:
parent
2ae37e902e
commit
a83e45df5e
94 changed files with 328 additions and 58 deletions
12
config/scripts/cudarun
Executable file
12
config/scripts/cudarun
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z $DISPLAY ]
|
||||
then
|
||||
sudo tee /proc/acpi/bbswitch <<< ON
|
||||
"$@"
|
||||
rmmod nvidia_uvm
|
||||
rmmod nvidia
|
||||
sudo tee /proc/acpi/bbswitch <<< OFF
|
||||
else
|
||||
PATH="/opt/cuda/bin:$PATH" LD_LIBRARY_PATH="/opt/cuda/lib64:$LD_LIBRARY_PATH" VBLANK=0 VGL_READBACK=pbo optirun -c yuv "$@"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue