Usually, located at /usr/local/cuda/bin
$ nvprof python train_mnist.py
I prefer to use --print-gpu-trace.
| #!/bin/bash | |
| # Dennis Ullrich | |
| # Version 0.1-0 (2017-06-29) | |
| # [email protected] | |
| # Bash Version 3 required (it also works with ksh) | |
| [[ ${BASH_VERSINFO[0]} -lt 3 ]] && exit 1 | |
| # Defaults | |
| stdin=0 |