You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: 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:
I am not sure which of these is the correct result, or am I misunderstanding them?
The text was updated successfully, but these errors were encountered:
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.
![image](https://private-user-images.githubusercontent.com/65108372/331889334-8e3fc910-3fd7-48c7-ac95-5f32aa03bfdc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTQzMDYsIm5iZiI6MTczOTU5NDAwNiwicGF0aCI6Ii82NTEwODM3Mi8zMzE4ODkzMzQtOGUzZmM5MTAtM2ZkNy00OGM3LWFjOTUtNWYzMmFhMDNiZmRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MzMyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3OGQzODA3MzMzODZiZmFhYjI5NTIxN2U0NjIzMTBjMTNmNTRiMzEzNjc4ZmMxODAzYzk5ZmQ2ZGJiYzJhNDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jc2CVzc2E9xrxmUxeCGGVuP2Hv0ftBWDxK6MkPWMMtY)
![image](https://private-user-images.githubusercontent.com/65108372/331889495-29760cc8-5af9-4477-b135-5b15ea09fec1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTQzMDYsIm5iZiI6MTczOTU5NDAwNiwicGF0aCI6Ii82NTEwODM3Mi8zMzE4ODk0OTUtMjk3NjBjYzgtNWFmOS00NDc3LWIxMzUtNWIxNWVhMDlmZWMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA0MzMyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyNmM1YTlkYzUzMjEzZjViZTRiNGI2OGZlY2VmM2ZhMGE0Mjc4ZjVjMjEyOWNjNTY1N2M3OGZhMWI5MWFlOTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-I9VsP0e0N4Omk015jnycqKGqoLmgU4eOVrhqbymcQA)
For
print(prof.key_averages().table(sort_by="cuda_time_total", row_limit=20))
, I get the following result: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:
I am not sure which of these is the correct result, or am I misunderstanding them?
The text was updated successfully, but these errors were encountered: