Skip to content

Commit

Permalink
Update Mac build to newer versions (#153)
Browse files Browse the repository at this point in the history
* Update Mac build to newer versions

* Fixed filename

* Debugging

* Try a more tolerant check
  • Loading branch information
peastman authored Aug 23, 2024
1 parent 9ceb9a0 commit 681adc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
python-version: "3.10"
pytorch-version: "2.1.*"

- name: MacOS (Python 3.9, PyTorch 1.9)
os: macos-11
- name: MacOS (Python 3.11, PyTorch 2.4)
os: macos-latest
cuda-version: ""
gcc-version: ""
nvcc-version: ""
python-version: "3.9"
pytorch-version: "1.9.*" # Some test fails with 1.10
python-version: "3.11"
pytorch-version: "2.4.*"


steps:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion python/tests/TestTorchForce.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def forward(self, positions):
assert self.positions.device == self.device
assert positions.device == self.device
assert positions.dtype == self.dtype
assert pt.all(positions == self.positions)
assert pt.allclose(positions, self.positions)
return pt.sum(positions)

with NamedTemporaryFile() as fd:
Expand Down

0 comments on commit 681adc2

Please sign in to comment.