Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA time difference between print function and Profiler TensorBoard #935

Open
med-galaxies opened this issue May 19, 2024 · 0 comments
Open
Labels
plugin PyTorch Profiler TensorBoard Plugin related

Comments

@med-galaxies
Copy link

I try to analyse the time spent on CPU and GPU using the print function and Profiler Tensorboard. But I get the different result about the time on CPU and GPU.
For print(prof.key_averages().table(sort_by="cuda_time_total", row_limit=20)), I get the following result:
image
The above result shows that CPU time is more than GPU time. But when I use the tensorboard to show the result, the GPU time is counted much more:
image
I am not sure which of these is the correct result, or am I misunderstanding them?

@sraikund16 sraikund16 added the plugin PyTorch Profiler TensorBoard Plugin related label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin PyTorch Profiler TensorBoard Plugin related
Projects
None yet
Development

No branches or pull requests

2 participants