GPU Usage Profiler #37
-
|
Should we use subprocess, profiler or torch profile recorder for GPU Usage |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The choice between using
Ultimately, the choice depends on your specific monitoring and profiling needs. If you need general GPU usage information and simplicity, |
Beta Was this translation helpful? Give feedback.
The choice between using
subprocessto run external commands (nvidia-smi), using a custom profiler, or leveraging PyTorch's built-in profiler (torch.autograd.profiler) for GPU usage monitoring depends on your specific requirements and the level of detail you need in the profiling results.subprocessfornvidia-smi:nvidia-smi.Use Case: Quick checks of overall GPU usage, especially if you need a general overview and don't need fine-grained de…