-
Notifications
You must be signed in to change notification settings - Fork 80
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
report mode GPU is in and write out gpu UUID #699
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a few suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! :)
Co-authored-by: Iván Pulido <2949729+ijpulidos@users.noreply.github.com>
…c in compute mode detection
…before assignment
Do you calling the command twice is okay? cf286f5#diff-2329790a58bd1510dc3f9b49f4ba83c331d71627f62e70d01f57677bf6f6a1b2R1786-R1787 Or should I check the error code instead of the try/except? If I check the error code then I don't have to worry about calling it twice. Thoughts? |
Couldn't you just get the error message from the previous Knowingly it already failed, since we are catching the exception. |
No because it throws a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this on my local machine with two different GPUs, it works! LGTM!
I'm going to change it a bit, I'm worried that we could end up with an error on the first call, but no error on the second call to nvidia-smi or sommething |
@ijpulidos sorry for changing my mind and the last second here, but I think this is better now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! LGTM.
Few flaky tests it seems, re-running them |
Description
Improve GPU logging information, inform user of potential issue with GPU compute mode, provide a better error message when
openmm.OpenMMException: No compatible CUDA device is available
is thrown.Resolves #693
Resolves #697
Todos
Status
Changelog message