-
Notifications
You must be signed in to change notification settings - Fork 171
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
Fail to profile CUDA activities when ProfilerActivity.CPU is not enabled #859
Labels
bug
Something isn't working
Comments
To provide better context, i also tried the same code with legacy autograd profiler Code to reproduceimport torch
with torch.autograd.profiler.profile(use_cuda=True) as prof:
for _ in range(100):
y = torch.randn(1).cuda() + torch.randn(1).cuda()
print(prof.key_averages().table(sort_by="cuda_time_total", row_limit=10)) Code Result
|
davidberard98
changed the title
Fail to profile CUDA activities
Fail to profile CUDA activities when ProfilerActivity.CPU is not enabled
Jan 25, 2024
I have the same problem.cuda: 12.3 |
The ops |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
Profiler fails to profile CUDA, and only CPU time is printed as the result.
When CUDA is set as the only profiled activity, the following message is produced:
Minimum code to reproduce
Code Result
Versions
The text was updated successfully, but these errors were encountered: