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 check to max num atoms #817

Merged
merged 4 commits into from
Aug 22, 2024
Merged

Add check to max num atoms #817

merged 4 commits into from
Aug 22, 2024

Conversation

misko
Copy link
Collaborator

@misko misko commented Aug 20, 2024

If we dont check max num atoms and run on GPU we get a weird CUDA device side assert failure with a line number that has nothing to do with the actual error. This prevents the issue by catching it early and giving a clear error message

@misko misko requested review from rayg1234 and wood-b August 20, 2024 22:10
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
...airchem/core/models/equiformer_v2/equiformer_v2.py 80.99% <100.00%> (+0.07%) ⬆️
src/fairchem/core/models/escn/escn.py 96.55% <100.00%> (+<0.01%) ⬆️

... and 1 file with indirect coverage changes

@misko misko added enhancement New feature or request patch Patch version release labels Aug 21, 2024
rayg1234
rayg1234 previously approved these changes Aug 21, 2024
Copy link
Collaborator

@rayg1234 rayg1234 left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Collaborator

@wood-b wood-b left a comment

Choose a reason for hiding this comment

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

LGTM!

@misko misko added this pull request to the merge queue Aug 22, 2024
Merged via the queue into main with commit 1bee0d7 Aug 22, 2024
8 checks passed
@misko misko deleted the add_check_to_max_num_atoms branch August 22, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request patch Patch version release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants