Commit 038557e
CI: replace skip with size override, add Ruff+Ty quality gate
- test_01_adder: define METAL_ADDER_ARRAY_LENGTH=10000 so the test runs on
the paravirtual CI GPU instead of being skipped; remove SKIP_RETURN_CODE 77
- MetalAdder.hpp: preprocessor guard so the example binary keeps the original
108 M element size while the test uses a small override
- Smoke test: add numerical assertions for add_arrays, saxpy, and laplacian2d
(flat field → zero interior); existing shape checks retained
- Add python-quality CI job (ubuntu-latest): ruff check, ruff format --check,
ty check — all powered by uvx, no separate install step
- python/_m1_gpu_ops.pyi: full type stubs for the pybind11 extension
- python/py.typed: PEP 561 marker
- pyproject.toml: [tool.ruff] + [tool.ty] configuration
- python/__init__.py: sort imports to satisfy isort (ruff I001)
- demo.py, wave_demo.py: apply ruff format
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b5e309b commit 038557e
10 files changed
Lines changed: 473 additions & 174 deletions
File tree
- .github/workflows
- 01-MetalAdder
- python
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
42 | 60 | | |
43 | 61 | | |
44 | 62 | | |
| |||
82 | 100 | | |
83 | 101 | | |
84 | 102 | | |
85 | | - | |
| 103 | + | |
86 | 104 | | |
87 | 105 | | |
88 | | - | |
89 | | - | |
| 106 | + | |
| 107 | + | |
90 | 108 | | |
91 | | - | |
| 109 | + | |
92 | 110 | | |
93 | 111 | | |
94 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
95 | 116 | | |
96 | 117 | | |
97 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | 207 | | |
210 | 208 | | |
211 | 209 | | |
| |||
0 commit comments