Skip to content

Commit

Permalink
mps used only if not in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wolearyc committed Sep 16, 2024
1 parent 8beec1b commit cc86093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tests/torch/test_gnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_gpu(poscar_ref_structure_fixture: ReferenceStructure) -> None:
device = "cuda"
# mps backend doesn't work with github runners
# https://github.com/actions/runner-images/issues/9918
elif torch.backends.mps.is_available() and os.getenv("GITHUB_ACTIONS") == "true":
elif torch.backends.mps.is_available() and os.getenv("GITHUB_ACTIONS") != "true":
device = "mps"
else:
return
Expand Down

0 comments on commit cc86093

Please sign in to comment.