please recompile the gg.cu
CUDA 10.1:
wget https://github.com/godweiyang/GrabGPU/releases/download/v1.0.0/gg_cu101
CUDA 11.0:
wget https://github.com/godweiyang/GrabGPU/releases/download/v1.0.0/gg_cu110
CUDA 11.2:
wget https://github.com/godweiyang/GrabGPU/releases/download/v1.0.0/gg_cu112
nvcc gg.cu -o gg -std=c++11
Usage:
./gg <GPU Memory (GB)> <Occupied Time (h)> <GPU ID>
Example:
Occupy 16 GB GPU memory for 24 hours using GPU 0, 1, 2, 3 to run default script.
./gg 16 24 0,1,2,3
Usage:
./gg <GPU Memory (GB)> <Occupied Time (h)> <GPU ID> <OPTIONAL: Script Path>
Example:
Occupy 16 GB GPU memory using GPU 0, 1, 2, 3 to run your own run.sh
. Note that the occupied time here is useless.
./gg 16 24 0,1,2,3 run.sh