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

Add basic available gpu information in debug log. #570

Merged
merged 4 commits into from Apr 11, 2022

Conversation

ijpulidos
Copy link
Contributor

Description

Adds available GPUs information to debug log by querying nvidia-smi.

Resolves #563

Todos

  • Implement feature / fix bug
  • [NA] Add tests
  • [NA] Update documentation as needed
  • Update changelogNotable points that this PR has either accomplished or will accomplish.

Status

  • Ready to go

@ijpulidos ijpulidos added this to the 0.21.3 milestone Apr 8, 2022
Copy link
Contributor

@mikemhenry mikemhenry left a comment

Choose a reason for hiding this comment

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

I wanted to test this on a system that didn't have nvidia-smi on it:

Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.popen("nvidia-smi --query-gpu=index,gpu_name --format=csv,noheader").read().strip()
/bin/sh: 1: nvidia-smi: not found
''
>>> 

and it looks like it won't cause an exception so LGTM!

@ijpulidos ijpulidos merged commit 6dacd43 into main Apr 11, 2022
@ijpulidos ijpulidos deleted the add-cuda-devs-debug-log branch April 11, 2022 19:35
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.

Have multistate sampler report which GPU we are using in log, if available
2 participants