-
Notifications
You must be signed in to change notification settings - Fork 18
Tests cuda #690
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
Draft
alinelena
wants to merge
16
commits into
stfc:main
Choose a base branch
from
alinelena:tests_cuda
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Tests cuda #690
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2631827
add gpu workflow and tests
alinelena c56fe6a
run only cpu on cpu
alinelena ed82efb
disable tracker on gpu
alinelena c0a008e
turn codecarbon error to a warning
alinelena 5dcae04
turn codecarbon error to a warning
alinelena a50d421
fix precommit
alinelena 5b1857e
change to warn
alinelena d4196f3
fix borked merge
alinelena 1514c9b
fix various
alinelena 033844c
Fix testing tracker warning
ElliottKasoar 5ade16e
Set tracker to None if fails to set up
ElliottKasoar 0829170
add mccabe complexity flag
alinelena c2fa018
add mccabe complexity flag 5
alinelena c0260f7
Update .github/workflows/bluesky.yml
alinelena aaacc49
Update .github/workflows/bluesky.yml
alinelena 421e22a
Update .github/workflows/bluesky.yml
alinelena 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: gpu-ci | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
|
|
||
| tests: | ||
| runs-on: [self-hosted, gpu] | ||
| if: github.repository == 'stfc/janus-core' | ||
| timeout-minutes: 60 | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10","3.11","3.12"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Install "all" dependencies | ||
| run: uv sync --extra chgnet --extra dpa3 --extra d3 --extra grace --extra mace --extra orb --extra upet --extra plumed | ||
|
|
||
| - name: Install PLUMED | ||
| uses: Iximiel/install-plumed@v1 | ||
| id: plumed | ||
| continue-on-error: true | ||
|
|
||
| - name: Set environment variable based on plumed success | ||
| run: | | ||
| if [ "${{ steps.plumed.outcome }}" = "success" ]; then | ||
| echo "PLUMED_KERNEL=${{ steps.plumed.outputs.plumed_prefix }}/lib/libplumedKernel.dylib" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| - name: Download extra models | ||
| run: | | ||
| python3 tests/models/extra_models.py tests/models/extra | ||
|
|
||
| - name: Run test suite | ||
| env: | ||
| # show timings of tests | ||
| PYTEST_ADDOPTS: "--durations=0" | ||
| run: uv run --no-sync pytest -k cuda | ||
|
|
||
| - name: Install updated e3nn dependencies | ||
| run: | | ||
| uv sync --extra mattersim --extra fairchem --extra sevennet --extra nequip --extra d3 | ||
| uv pip install --reinstall pynvml | ||
| uv pip install "fairchem-core[torch-extras]" --no-build-isolation | ||
|
|
||
| - name: Run test suite for updated e3nn dependencies | ||
| env: | ||
| # show timings of tests | ||
| PYTEST_ADDOPTS: "--durations=0" | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| run: uv run --no-sync pytest tests/test_{mlip_calculators,single_point}.py -k cuda |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -32,3 +32,4 @@ keep_checkpoints: False | |
| save_cpu: True | ||
| weight_decay: 1e-8 | ||
| eval_interval: 2 | ||
| plot: False | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -44,3 +44,4 @@ clip_grad: 100 | |
| keep_checkpoints: False | ||
| keep_isolated_atoms: True | ||
| save_cpu: True | ||
| plot: False | ||
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.