/kill_gpu

a shell script is used to free nvidia gpu memory

Primary LanguageShellMIT LicenseMIT

kill_gpu

a shell script is used to free nvidia gpu memory

Note that given the card id, this script will kill all the pid that consuming gpu memory

Example

image

input command line

sudo sh kill_gpu.sh 1

output

image