-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cuml_enabled
- Loading branch information
Showing
29 changed files
with
3,137 additions
and
2,815 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: PopV (cuda) | ||
|
||
on: | ||
push: | ||
branches: [main, "[0-9]+.[0-9]+.x"] #this is new | ||
pull_request: | ||
branches: [main, "[0-9]+.[0-9]+.x"] | ||
types: [labeled, synchronize, opened] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
# if PR has label "cuda tests" or "all tests" or if scheduled or manually triggered | ||
if: >- | ||
( | ||
contains(github.event.pull_request.labels.*.name, 'cuda tests') || | ||
contains(github.event.pull_request.labels.*.name, 'all tests') || | ||
contains(github.event_name, 'schedule') || | ||
contains(github.event_name, 'workflow_dispatch') | ||
) | ||
runs-on: [self-hosted, Linux, X64, CUDA] | ||
|
||
defaults: | ||
run: | ||
shell: bash -e {0} # -e to fail on error | ||
|
||
container: | ||
image: ghcr.io/yoseflab/popv:py3.10-cu12-base | ||
options: --user root --gpus all --pull always | ||
|
||
name: integration | ||
|
||
env: | ||
OS: ${{ matrix.os }} | ||
PYTHON: ${{ matrix.python }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
cache: "pip" | ||
cache-dependency-path: "**/pyproject.toml" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel uv | ||
python -m uv pip install --system "PopV[tests] @ ." | ||
python -m pip install jax[cuda] | ||
python -m pip install nvidia-nccl-cu12 | ||
- name: Run pytest | ||
env: | ||
MPLBACKEND: agg | ||
PLATFORM: ${{ matrix.os }} | ||
DISPLAY: :42 | ||
COLUMNS: 120 | ||
run: | | ||
coverage run -m pytest -v --color=yes --accelerator cuda --devices auto | ||
coverage report | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ __pycache__/ | |
/.pytest_cache/ | ||
/.cache/ | ||
/data/ | ||
/node_modules/ | ||
|
||
# docs | ||
/docs/generated/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff a/.pre-commit-config.yaml b/.pre-commit-config.yaml (rejected hunks) | ||
@@ -6,29 +6,18 @@ default_stages: | ||
- push | ||
minimum_pre_commit_version: 2.16.0 | ||
repos: | ||
- - repo: https://github.com/psf/black | ||
- rev: "24.4.2" | ||
- hooks: | ||
- - id: black | ||
- - repo: https://github.com/asottile/blacken-docs | ||
- rev: 1.16.0 | ||
- hooks: | ||
- - id: blacken-docs | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v4.0.0-alpha.8 | ||
hooks: | ||
- id: prettier | ||
- # Newer versions of node don't work on systems that have an older version of GLIBC | ||
- # (in particular Ubuntu 18.04 and Centos 7) | ||
- # EOL of Centos 7 is in 2024-06, we can probably get rid of this then. | ||
- # See https://github.com/scverse/cookiecutter-scverse/issues/143 and | ||
- # https://github.com/jupyterlab/jupyterlab/issues/12675 | ||
- language_version: "17.9.1" | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.4.4 | ||
hooks: | ||
- id: ruff | ||
+ types_or: [python, pyi, jupyter] | ||
args: [--fix, --exit-non-zero-on-fix] | ||
+ - id: ruff-format | ||
+ types_or: [python, pyi, jupyter] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: |
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# https://docs.readthedocs.io/en/stable/config-file/v2.html | ||
version: 2 | ||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.10" | ||
python: "3.11" | ||
sphinx: | ||
configuration: docs/conf.py | ||
# disable this for more lenient docs builds | ||
fail_on_warning: true | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- doc | ||
- docsbuild | ||
submodules: | ||
include: | ||
- "docs/notebooks" | ||
recursive: true |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
diff a/README.md b/README.md (rejected hunks) | ||
@@ -17,7 +17,7 @@ Please refer to the [documentation][link-docs]. In particular, the | ||
|
||
## Installation | ||
|
||
-You need to have Python 3.9 or newer installed on your system. If you don't have | ||
+You need to have Python 3.10 or newer installed on your system. If you don't have | ||
Python installed, we recommend installing [Mambaforge](https://github.com/conda-forge/miniforge#mambaforge). | ||
|
||
There are several alternative options to install PopV: |
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.