Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
51 lines (44 loc) · 1.56 KB
/
Copy pathTaskfile.yml
File metadata and controls
51 lines (44 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3"
env:
PYTHONPATH: src
OMP_NUM_THREADS: "1"
OPENBLAS_NUM_THREADS: "1"
MKL_NUM_THREADS: "1"
TORCHINDUCTOR_COMPILE_THREADS: "1"
tasks:
lint:
desc: Run ruff linter and formatter check
cmds:
- uv run --no-sync ruff check .
- uv run --no-sync ruff format --check .
format:
desc: Run ruff formatter
cmds:
- uv run --no-sync ruff format .
- uv run --no-sync ruff check --fix .
test:
desc: Run the comprehensive local CPU suite (alias for test-local)
cmds:
- task: test-local
test-ci:
desc: Run short, representative correctness tests used by CI
env:
JAX_PLATFORMS: cpu
JAX_ENABLE_X64: "1"
RGI_DISABLE_COMPILE: "1"
cmds:
- uv run --active --no-sync python -m pytest @tests/ci.txt -m "not gpu" -n 2 --dist loadfile --strict-markers --durations=10 {{.CLI_ARGS}}
test-local:
desc: Run every CPU regression and real CPU compilation check
env:
JAX_PLATFORMS: cpu
JAX_ENABLE_X64: "1"
cmds:
- RGI_DISABLE_COMPILE=1 uv run --active --no-sync python -m pytest -m "not gpu and not cpu_compile" -n 2 --dist loadfile --strict-markers --durations=10 {{.CLI_ARGS}}
- RGI_DISABLE_COMPILE=0 uv run --active --no-sync python -m pytest -m "not gpu and cpu_compile" --strict-markers --durations=10 {{.CLI_ARGS}}
test-gpu:
desc: Run all GPU checks in an activated CUDA-enabled predictor environment
env:
RGI_DISABLE_COMPILE: "0"
cmds:
- uv run --active --no-sync python -m pytest -m gpu --strict-markers --durations=10 {{.CLI_ARGS}}