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

Fix issue while logging cuda device utilization to tensorboard #3727

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

arnavgarg1
Copy link
Contributor

Fix for #3726

2023-10-13T09:40:16Z [job] torch.cuda.device(i).utilization(),
2023-10-13T09:40:16Z [job] AttributeError: 'device' object has no attribute 'utilization'

API utilization from docs: https://pytorch.org/docs/stable/generated/torch.cuda.utilization.html#torch.cuda.utilization

Tested on a GPU and this works correctly

@github-actions
Copy link

github-actions bot commented Oct 13, 2023

Unit Test Results

  6 files  ±0    6 suites  ±0   19m 35s ⏱️ -18s
12 tests ±0    9 ✔️ ±0    3 💤 ±0  0 ±0 
60 runs  ±0  42 ✔️ ±0  18 💤 ±0  0 ±0 

Results for commit 808cba9. ± Comparison against base commit cb1f7d9.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@justinxzhao justinxzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY.

@arnavgarg1 arnavgarg1 merged commit 062f958 into master Oct 13, 2023
16 of 17 checks passed
@arnavgarg1 arnavgarg1 deleted the cuda-issue branch October 13, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants