Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement