SHARE
TWEET

Untitled

a guest Aug 26th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Usually, located at /usr/local/cuda/bin
  2.  
  3. ## Non-Visual Profiler
  4.  
  5. ```
  6. $ nvprof python train_mnist.py
  7. ```
  8.  
  9. I prefer to use --print-gpu-trace.
  10.  
  11. ```
  12. $ nvprof --print-gpu-trace python train_mnist.py
  13. ```
  14.  
  15. ## Visual Profiler
  16.  
  17. On GPU machine, run
  18.  
  19. ```
  20. $ nvprof -o prof.nvvp python train_mnist.py
  21. ```
  22.  
  23. Copy `prof.nvvp` into your local machine
  24.  
  25. ```
  26. $ scp your_gpu_machine:/path/to/prof.nvvp .
  27. ```
  28.  
  29. Then, run nvvp (nvidia visual profiler) on your local machine:
  30.  
  31. ```
  32. $ nvvp prof.nvvp
  33. ```
  34.  
  35. It works more comfortably than X11 forwarding or something.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top