-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support parameter derivatives #142
Closed
Closed
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
6cbc78d
Conditionally set C++17 for latest pytorch versions
RaulPPelaez d26f945
Add correct std to setup.py too
RaulPPelaez 0f89440
Try to free up some space for the CI
RaulPPelaez a604b33
Clean space on CI machine before installing CUDA
RaulPPelaez 4b6bd73
Update CMakeLists.txt
RaulPPelaez a347019
Add energy parameter derivative to the API
RaulPPelaez e12b0af
Empty commit to trigger CI
RaulPPelaez 11fb899
Change to int
RaulPPelaez cd35af1
Add test for energy derivatives
RaulPPelaez b69456e
Update env
RaulPPelaez fc5a85f
Update env
RaulPPelaez 033b2d4
Typo
RaulPPelaez ded6559
typo
RaulPPelaez d1e0c22
Merge branch 'cpp17' into derivatives
RaulPPelaez 55de9ee
Add getNumEnergyParameterDerivatives
RaulPPelaez bcc8759
Implement Reference platform
RaulPPelaez aba8a62
Update test
RaulPPelaez f26e867
Update test adding two parameters
RaulPPelaez 00b8120
Implement CUDA and OpenCL
RaulPPelaez 277c90d
Initialize OpenCL energyParameterDerivatives map
RaulPPelaez 9d6d34c
Fix return
RaulPPelaez 4778eac
Remove commented code
RaulPPelaez 4031cc5
Register params to the context
RaulPPelaez 0acc338
Make sure backwards is called with all the requested parameters as in…
RaulPPelaez 9c65e6b
Small changes
RaulPPelaez 0dbc814
Small changes
RaulPPelaez 46990a9
Test more cases
RaulPPelaez ce80b7d
Handle CUDA graphs
RaulPPelaez b0d51e6
Test the case when a model already calls backwards to compute the forces
RaulPPelaez 0f88d7f
Small changes
RaulPPelaez c81526c
Handle some corner cases in OpenCL and Reference
RaulPPelaez 4c9b5e5
Small changes
RaulPPelaez 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 |
---|---|---|
|
@@ -77,6 +77,53 @@ jobs: | |
NVCC_VERSION: ${{ matrix.nvcc-version }} | ||
PYTORCH_VERSION: ${{ matrix.pytorch-version }} | ||
|
||
- name: Manage disk space | ||
if: 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 CUDA Toolkit on Linux (if needed)" | ||
uses: Jimver/[email protected] | ||
with: | ||
cuda: ${{ matrix.cuda-version }} | ||
linux-local-args: '["--toolkit", "--override"]' | ||
if: startsWith(matrix.os, 'ubuntu') | ||
|
||
- name: "Install SDK on MacOS (if needed)" | ||
run: source devtools/scripts/install_macos_sdk.sh | ||
if: startsWith(matrix.os, 'macos') | ||
|
||
- name: "Update the conda enviroment file" | ||
uses: cschleiden/replace-tokens@v1 | ||
with: | ||
tokenPrefix: '@' | ||
tokenSuffix: '@' | ||
files: devtools/conda-envs/build-${{ matrix.os }}.yml | ||
env: | ||
CUDATOOLKIT_VERSION: ${{ matrix.cuda-version }} | ||
GCC_VERSION: ${{ matrix.gcc-version }} | ||
NVCC_VERSION: ${{ matrix.nvcc-version }} | ||
PYTORCH_VERSION: ${{ matrix.pytorch-version }} | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
name: "Install dependencies with Mamba" | ||
with: | ||
|
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.
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.
Should I be summing here instead of overwritting?