Repository navigation
GPU Test Runner and Related Fixes #9112
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
Merged
Merged
Changes from 56 commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
b6f53b7
Adding GPU Test Runner
ericspod c9fdb83
Fix
ericspod f0d79b9
Update
ericspod 9c598ff
Fix retinanet for now
ericspod 773760a
Merge branch 'dev' into gpu_runner
ericspod 94fc798
Try quick tests first
ericspod c6f79f4
BUILD_MONAI?
ericspod dbad3b9
BUILD_MONAI?
ericspod 10d8f54
BUILD_MONAI?
ericspod 460f12d
License fix
ericspod a98caf1
Try to address a few fails when running in the standard Docker
ericspod 0975082
Try without building
ericspod 70deb93
Fix for compiler fail
ericspod 11c4f87
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e63c08e
Change image comparison threshold for threadcontainer test
ericspod fd6a40f
Merge branch 'gpu_runner' of github.com:ericspod/MONAI into gpu_runner
ericspod b496991
Temporarily adding compiled code accuracy fix
ericspod fb1c54f
Possibly need build-essential
ericspod 525755f
sudo
ericspod 01992d0
Tweak
ericspod a088e37
Undo temporary addition [skip ci]
ericspod 940a1ef
Merge branch 'dev' into gpu_runner
ericspod 0c4436f
Continuing to debug segfault issue
ericspod 8caf239
Merge branch 'gpu_runner' of github.com:ericspod/MONAI into gpu_runner
ericspod 3060de1
Continuing to debug segfault issue
ericspod 837ea35
Continuing to debug segfault issue
ericspod 7866574
Continuing to debug segfault issue
ericspod 2dd33ee
Continuing to debug segfault issue
ericspod 6d67368
Continuing to debug segfault issue
ericspod 3635022
Continuing to debug segfault issue
ericspod 0e2b96c
Continuing to debug segfault issue
ericspod cdc1e6f
Continuing to debug segfault issue
ericspod 6d1b06b
Restore tests
ericspod 33591b7
Restore tests
ericspod ddb15b8
Narrow test scope
ericspod bff8977
Rename
ericspod af4096c
Adding compile information functions
ericspod 5498977
Test fixes
ericspod 5647d37
Disabling Auto3DSeg tests relying on templates
ericspod 5f42f7b
Merge branch 'dev' into gpu_runner
ericspod e6e9275
Fix SENet tests and model weights URLs
ericspod 4ab6b76
Adding Hyena test, disabling NGC test for now
ericspod ba204e3
wheel_stub
ericspod 4e5d527
Make a separate Hyena job
ericspod 0d68092
Make a separate Hyena job
ericspod 083d17f
Try again without nvimgcodec
ericspod 002f040
Remove Cuda toolkit install
ericspod 62e09fa
Try adding nvimgcodec back in with updated tests
ericspod 1c8b222
Try to fix cucim dependency issue
ericspod db4269f
Finalize setup as a cron job
ericspod be49e72
Merge branch 'dev' into gpu_runner
ericspod f31f656
Review changes
ericspod 0d7dd16
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5f628c6
Updates from comments
ericspod 5c6b039
Merge branch 'gpu_runner' of github.com:ericspod/MONAI into gpu_runner
ericspod 258b2c7
Fix
ericspod 181b2ea
Updates from comments
ericspod 47e09b2
Merge branch 'dev' into gpu_runner
ericspod 2744fde
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6c251fa
Updates from comments
ericspod 2aaeb8a
Merge branch 'dev' into gpu_runner
ericspod 552d997
Merge branch 'gpu_runner' of github.com:ericspod/MONAI into gpu_runner
ericspod c206001
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] be9c737
Updates from comments
ericspod e769d00
Merge branch 'gpu_runner' of github.com:ericspod/MONAI into gpu_runner
ericspod 791d8a9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fa5c6ef
Merge branch 'dev' into gpu_runner
ericspod 1491afd
Add temporary PR trigger
ericspod fd590fc
Merge branch 'gpu_runner' of github.com:ericspod/MONAI into gpu_runner
ericspod ffda194
Fix
ericspod 35c4994
Merge branch 'dev' into gpu_runner
ericspod 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,102 @@ | ||
| name: tests | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 2 * * 3" # at 02:00 UTC Wednesday | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| # automatically cancel the previously triggered workflows when there's a newer version | ||
| group: cicd-tests-gpu-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| # Supported versions of Python and PyTorch are listed here for use below and as documentation | ||
| env: | ||
| # supported versions of Python | ||
| PYTHON_VER1: '3.11' | ||
| PYTHON_VER2: '3.12' | ||
| PYTHON_VER3: '3.13' | ||
| # PYTHON_VER4: '3.14' # TODO: not compatible with Torchscript, re-enable once Torchscript removed from MONAI | ||
| # PYTHON_VER5: '3.15' | ||
| # supported versions of PyTorch | ||
| PYTORCH_VER1: '2.12.1' | ||
| PYTORCH_VER2: '2.13.0' | ||
| PYTORCH_VER3: '2.14.1' | ||
| PYTORCH_VER4: '2.15.0' | ||
| TORCHVISION_VER1: '0.27.1' # used for testing with lowest PyTorch version (PYTORCH_VER1), update as needed | ||
|
|
||
| TQDM_DISABLE: 1 # squelch TQDM output to reduce log file size | ||
|
|
||
| PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python # https://github.com/Project-MONAI/MONAI/issues/4354 | ||
|
|
||
| BUILD_MONAI: 1 # always build MONAI and ensure it tries to use the compiled extensions | ||
| FORCE_CUDA: 1 # ensure CUDA code is built | ||
| CUDA_HOME: '/usr/local/cuda' # ensure the CUDA directory is definitely found | ||
| TORCH_CUDA_ARCH_LIST: "7.5 8.0 8.6 8.9 9.0+PTX 12.0" # specify supported architectures | ||
|
|
||
| jobs: | ||
|
|
||
| full-dep-gpu: | ||
| runs-on: [self-hosted, linux, gpu] | ||
| strategy: | ||
| fail-fast: false | ||
| timeout-minutes: 360 | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Set up Python ${{ env.PYTHON_VER1 }} | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ env.PYTHON_VER1 }} | ||
| cache: 'pip' | ||
| env: | ||
| DEBIAN_FRONTEND: 'noninteractive' | ||
| - name: Install the complete dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip wheel wheel_stub | ||
| python -m pip install torch==${PYTORCH_VER1} torchvision==${TORCHVISION_VER1} | ||
| python -m pip install --pre -U itk # TODO: needed? | ||
| python monai/config/print_dependencies.py build-system | xargs pip install --no-build-isolation | ||
| # tests below use the MONAI in the current directory, -e ensures the compiled code stays there and is found | ||
| python -m pip install --no-build-isolation torch==${PYTORCH_VER1} torchvision==${TORCHVISION_VER1} -e .[all,testing,nvimgcodec] | ||
| shell: bash | ||
| - name: Run (almost) all tests | ||
| run: | | ||
| python -c 'import monai._C; cap=monai._C.max_compute_capability(); assert cap > 0, f"Capabilities too low: {cap}"' | ||
| nvidia-smi || true | ||
| python monai/config/check_env.py --env --monai | ||
| ./runtests.sh -u --net | ||
| # env: # FIXME: NGC test failing with "RuntimeError: NGC API response is not ok. Failed to get token." Need to fix key? | ||
| # NGC_API_KEY: ${{ secrets.NGC_API_KEY }} | ||
| # NGC_ORG: ${{ secrets.NGC_ORG }} | ||
| # NGC_TEAM: ${{ secrets.NGC_TEAM }} | ||
|
|
||
| full-dep-gpu-hyena: | ||
| runs-on: [self-hosted, linux, gpu] | ||
| strategy: | ||
| fail-fast: false | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - name: Set up Python ${{ env.PYTHON_VER1 }} | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ env.PYTHON_VER1 }} | ||
| cache: 'pip' | ||
| env: | ||
| DEBIAN_FRONTEND: 'noninteractive' | ||
| - name: Install the complete dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip wheel wheel_stub | ||
| python -m pip install torch==${PYTORCH_VER3} torchvision | ||
| python monai/config/print_dependencies.py build-system | xargs pip install --no-build-isolation | ||
| # tests below use the MONAI in the current directory, -e ensures the compiled code stays there and is found | ||
| python -m pip install --no-build-isolation -e .[testing,hyena] | ||
| shell: bash | ||
| - name: Run Hyena tests | ||
| run: | | ||
| python -c "from monai.networks.blocks.hyena import is_nvsubquadratic_available; \ | ||
|
ericspod marked this conversation as resolved.
Resolved
|
||
| assert is_nvsubquadratic_available(), 'nvsubquadratic must be importable'" | ||
| python -m unittest tests.networks.blocks.test_hyena_block tests.networks.nets.test_hyena_nd_unetr tests.networks.nets.test_swin_unetr | ||
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 |
|---|---|---|
|
|
@@ -170,3 +170,5 @@ runs | |
| *.pth | ||
|
|
||
| *zarr/* | ||
|
|
||
| uv.lock | ||
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
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
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
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.