Skip to content

CUDA time difference between print function and Profiler TensorBoard #935

Open
@med-galaxies

Description

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?

Metadata

Assignees

No one assigned

    Labels

    pluginPyTorch Profiler TensorBoard Plugin related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions