Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 308 Bytes

File metadata and controls

16 lines (11 loc) · 308 Bytes

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