-
Notifications
You must be signed in to change notification settings - Fork 25
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
Attempts at fixing CI #144
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
8ee2690
Try to fix CI on Linux
peastman 3295508
Don't install POCL on Mac
peastman d999f82
Don't install khronos-opencl-icd-loader
peastman 2e7e10b
Update OpenMM version
peastman dac8668
Updated tested versions
peastman e854539
Fixed version number
peastman 8b73bd7
Install correct packages for CUDA 12
peastman 6342238
Debugging
peastman ae97283
Debugging
peastman 852bbba
Debugging
peastman be7d276
Debugging
peastman e829b39
Debugging
peastman 956711d
Debugging
peastman 5ce95d5
Debugging
peastman 2ddca89
Debugging
peastman 2a7290f
Debugging
peastman 8d30496
Debugging
peastman dd0b2cb
Debugging
peastman 4137432
Debugging
peastman 7028d14
Debugging
peastman e21862a
Try different method of installing CUDA
peastman d5c931f
Try not installing CUDA packages from conda
peastman 405bab7
Debugging
peastman 767b7e1
Debugging
peastman 931bacf
Debugging
peastman ff80350
Debugging
peastman ed38732
Debugging
peastman edac428
Don't build OpenCL on Mac
peastman 6f3a150
Don't try to run tests that can't run correctly
peastman 41090bd
Update C++ version and minimum macOS version
peastman 2742f05
Merge branch 'master' into ci
peastman 28d7319
Debugging
peastman 4dedafd
Debugging
peastman 1c644b4
Debugging
peastman 6973feb
Debugging
peastman 69b9e35
Debugging
peastman 875a698
Debugging
peastman c84b975
Fixed working directory for tests
peastman e4c5d20
Fixes to testing
peastman 3726621
Try using PyTorch 2.3
peastman 6ab463a
Try using PyTorch 2.2
peastman 1389ef4
Switch back to PyTorch 2.1
peastman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,24 +22,13 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
# Oldest supported versions | ||
# NOTE: renable CUDA 10.2 when it supported by NNPOps (https://github.com/conda-forge/nnpops-feedstock/pull/8) | ||
- name: Linux (CUDA 11.0, Python 3.7, PyTorch 1.11) | ||
os: ubuntu-22.04 | ||
cuda-version: "11.0.3" | ||
gcc-version: "8.5.*" | ||
nvcc-version: "11.0" | ||
python-version: "3.7" | ||
pytorch-version: "1.11.*" | ||
|
||
# Latest supported versions | ||
- name: Linux (CUDA 11.8, Python 3.10, PyTorch 2.0) | ||
- name: Linux (CUDA 11.8, Python 3.10, PyTorch 2.1) | ||
os: ubuntu-22.04 | ||
cuda-version: "11.8.0" | ||
gcc-version: "10.3.*" | ||
nvcc-version: "11.8" | ||
python-version: "3.10" | ||
pytorch-version: "2.0.*" | ||
pytorch-version: "2.1.*" | ||
|
||
- name: MacOS (Python 3.9, PyTorch 1.9) | ||
os: macos-11 | ||
|
@@ -55,12 +44,36 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: "Install CUDA Toolkit on Linux (if needed)" | ||
uses: Jimver/[email protected].10 | ||
uses: Jimver/[email protected].15 | ||
with: | ||
cuda: ${{ matrix.cuda-version }} | ||
linux-local-args: '["--toolkit", "--override"]' | ||
if: startsWith(matrix.os, 'ubuntu') | ||
|
||
- name: Manage disk space | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
sudo mkdir -p /opt/empty_dir || true | ||
for d in \ | ||
/opt/ghc \ | ||
/opt/hostedtoolcache \ | ||
/usr/lib/jvm \ | ||
/usr/local/.ghcup \ | ||
/usr/local/lib/android \ | ||
/usr/local/share/powershell \ | ||
/usr/share/dotnet \ | ||
/usr/share/swift \ | ||
; do | ||
sudo rsync --stats -a --delete /opt/empty_dir/ $d || true | ||
done | ||
sudo apt-get purge -y -f firefox \ | ||
google-chrome-stable \ | ||
microsoft-edge-stable | ||
sudo apt-get autoremove -y >& /dev/null | ||
sudo apt-get autoclean -y >& /dev/null | ||
sudo docker image prune --all --force | ||
df -h | ||
|
||
- name: "Install SDK on MacOS (if needed)" | ||
run: source devtools/scripts/install_macos_sdk.sh | ||
if: startsWith(matrix.os, 'macos') | ||
|
@@ -130,7 +143,7 @@ jobs: | |
run: | | ||
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib/python${{ matrix.python-version }}/site-packages/torch/lib:${LD_LIBRARY_PATH}" | ||
cd build | ||
ctest --output-on-failure --exclude-regex TestCuda | ||
ctest --output-on-failure --exclude-regex "TestCuda|TestOpenCL" | ||
|
||
- name: "Run Python test" | ||
shell: bash -l {0} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
There is pytorch 2.3 in conda-forge.
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.
I just tried 2.3, but it fails to install.
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.
I tried 2.2, but it reports that version isn't available at all. I switched back to 2.1.
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.
Pytorch 2.3 requires CUDA >=12 it seems, but only for python>3.9?. tbh I am not sure, I can never fully grasp these conda errors.
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.
Going forward, have proposed some suggestions that may help alleviate these issues ( #146 ). Also this may help with moving to CUDA 12 when that happens