-
Notifications
You must be signed in to change notification settings - Fork 1
CuPy support #51
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
CuPy support #51
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1555a2a
Move cupy types to original locations
flying-sheep 3c542b7
Merge branch 'main' into pa/cupy
flying-sheep 7fa234f
fix test utils
flying-sheep f15338e
get
flying-sheep afbabe5
fix to_dense
flying-sheep 871461e
sum support without cupy-in-dask
flying-sheep 350a21c
sum works
flying-sheep 5239a95
mean and mean_var
flying-sheep 2577cd3
add workflow
flying-sheep b2a6633
cirun yml
flying-sheep 1cbe91d
cupy array support for is_constant
flying-sheep 53798d0
color tests
flying-sheep 4d4ed71
skip remaining tests
flying-sheep 2144a17
fix type
flying-sheep bbf256b
fix docs
flying-sheep 17fdffa
only sparse are limited to float
flying-sheep 862faf4
simpler
flying-sheep a0b0f8e
Merge branch 'main' into pa/cupy
flying-sheep b2151a3
9be7813
no arraylike
flying-sheep d45416b
simplify
flying-sheep 5978d1e
codecov
flying-sheep 39a9da2
renames
flying-sheep 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,11 @@ | ||
| runners: | ||
| - name: aws-gpu-runner | ||
| cloud: aws | ||
| instance_type: g4dn.xlarge | ||
| machine_image: ami-067a4ba2816407ee9 | ||
| region: eu-north-1 | ||
| preemptible: | ||
| - true | ||
| - false | ||
| labels: | ||
| - cirun-aws-gpu |
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 |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| name: GPU-CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| types: | ||
| - labeled | ||
| - opened | ||
| - synchronize | ||
|
|
||
| env: | ||
| PYTEST_ADDOPTS: "-v --color=yes" | ||
| FORCE_COLOR: "1" | ||
| UV_HTTP_TIMEOUT: 120 | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| check: | ||
| name: Check Label | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: flying-sheep/check@v1 | ||
| with: | ||
| success: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'run-gpu-ci') }} | ||
| test: | ||
| name: All Tests | ||
| needs: check | ||
| runs-on: "cirun-aws-gpu--${{ github.run_id }}" | ||
| timeout-minutes: 30 | ||
| defaults: | ||
| run: | ||
| shell: bash -el {0} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Check NVIDIA SMI | ||
| run: nvidia-smi | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| - uses: hynek/setup-cached-uv@v2 | ||
| with: | ||
| cache-dependency-path: pyproject.toml | ||
| - name: Install package | ||
| run: uv pip install --system -e .[test,full] cupy-cuda12x --extra-index-url=https://pypi.nvidia.com --index-strategy=unsafe-best-match | ||
| - name: List installed packages | ||
| run: uv pip list | ||
| - name: Run tests | ||
| run: | | ||
| coverage run -m pytest -m "not benchmark" | ||
| coverage report | ||
| # https://github.com/codecov/codecov-cli/issues/648 | ||
| coverage xml | ||
| rm test-data/.coverage | ||
| - uses: codecov/codecov-action@v5 | ||
| with: | ||
| name: GPU Tests | ||
| fail_ci_if_error: true | ||
| files: test-data/coverage.xml | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| - name: Remove “run-gpu-ci” Label | ||
| if: always() | ||
| uses: actions-ecosystem/action-remove-labels@v1 | ||
| with: | ||
| labels: run-gpu-ci | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} |
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.