Skip to content

Instantly share code, notes, and snippets.

@wasdee
Forked from sonots/nvvp.md
Last active September 8, 2018 22:17
Show Gist options
  • Save wasdee/90898b7453ea4950c121f8e051c5399c to your computer and use it in GitHub Desktop.
Save wasdee/90898b7453ea4950c121f8e051c5399c to your computer and use it in GitHub Desktop.
How to use NVIDIA profiler #cuda

Usually, located at /usr/local/cuda/bin

Non-Visual Profiler

$ nvprof python train_mnist.py

I prefer to use --print-gpu-trace.

$ nvprof --print-gpu-trace python train_mnist.py

Visual Profiler

GPUを持っているホストで、

$ nvprof -o prof.nvvp python train_mnist.py

ローカルに持ってきて、

$ nvvp prof.nvvp

とやったほうが X11 Forwarding を使ったりするよりキビキビ動いて良い。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment