Skip to content

Instantly share code, notes, and snippets.

@SiLiKhon
Created April 22, 2019 16:52
Show Gist options
  • Save SiLiKhon/f516f93e0bf168264093cf79a412230d to your computer and use it in GitHub Desktop.
Save SiLiKhon/f516f93e0bf168264093cf79a412230d to your computer and use it in GitHub Desktop.
ps -eo 'user,pid,command' | grep -E "`nvidia-smi -q -d "PIDS" | grep 'Process ID' | awk '{print $4}' | paste -sd '|'`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment