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

Compute selection: deviceIndex & enforce 1 thread in vacuum #752

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

IAlibay
Copy link
Contributor

@IAlibay IAlibay commented Mar 4, 2024

Fixes #739 #704

Checklist

  • Added a news entry

Developers certificate of origin

@pep8speaks
Copy link

pep8speaks commented Mar 4, 2024

Hello @IAlibay! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 195:80: E501 line too long (93 > 79 characters)
Line 739:80: E501 line too long (81 > 79 characters)

Line 620:80: E501 line too long (81 > 79 characters)
Line 623:80: E501 line too long (80 > 79 characters)

Line 935:80: E501 line too long (81 > 79 characters)
Line 938:80: E501 line too long (80 > 79 characters)

Line 30:80: E501 line too long (136 > 79 characters)

Line 178:80: E501 line too long (132 > 79 characters)

Comment last updated at 2024-07-04 00:06:38 UTC

@IAlibay IAlibay linked an issue Mar 4, 2024 that may be closed by this pull request
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 92.15%. Comparing base (ecc8a50) to head (48707e2).

Files Patch % Lines
openfe/protocols/openmm_utils/omm_compute.py 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #752      +/-   ##
==========================================
- Coverage   93.98%   92.15%   -1.84%     
==========================================
  Files         134      134              
  Lines        9790     9800      +10     
==========================================
- Hits         9201     9031     -170     
- Misses        589      769     +180     
Flag Coverage Δ
fast-tests 92.15% <83.33%> (?)
slow-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IAlibay IAlibay requested a review from mikemhenry July 4, 2024 00:08
@IAlibay
Copy link
Contributor Author

IAlibay commented Jul 4, 2024

@mikemhenry when you get a chance please do have a look at this - I suspect it'll make life a bit easier in some cases.

String with the platform name. If None, it will use the fastest
platform supporting mixed precision.
Default ``None``.
gpu_device_index : Optional[list[str]]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually we should probably have a chat about how we handle this long term - this is a bit like MPI settings, where technically we shouldn't make this immutable but maybe something we pick up at run time?

How can we go about handling this properly?

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.

add cuda DeviceIndex in engine_settings Make get_openmm_platform set threads to 1 if using NoCutoff
2 participants