You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Project now uses torch exclusively for tensor operations. numpy was
only used as a fallback conversion path and isinstance check; ml_dtypes
had no remaining call sites.
- Remove numpy fallback in _to_torch() and isinstance checks in
code_runner.py and ci.py
- Ensure _to_torch() always returns cpu+contiguous tensors; remove
redundant .cpu().contiguous() at call sites
- Remove pip install numpy/ml_dtypes from all CI workflow jobs;
sim jobs now use pip install '.[test]' instead of separate installs
- Add Dependencies section to python-packaging.md documenting the
simpler vs simpler_setup dependency split
- Update getting-started.md install commands and docstrings
Copy file name to clipboardExpand all lines: docs/python-packaging.md
+14-3Lines changed: 14 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,17 @@ _task_interface.*.so nanobind extension at site-packages root
47
47
48
48
Internal coupling: `simpler_setup.toolchain`, `simpler_setup.kernel_compiler`, and `simpler_setup.runtime_compiler` import `simpler.env_manager`. This is the only direction allowed (`simpler_setup → simpler`); never the reverse. `simpler` must not depend on `simpler_setup`.
49
49
50
+
### Dependencies
51
+
52
+
| Category | Packages |
53
+
| -------- | -------- |
54
+
|`simpler` runtime | No third-party Python deps. Requires platform backend: simulation (`a*sim`) or NPU hardware (`a2a3`/`a5` with CANN toolkit) |
55
+
|`simpler_setup` runtime |`torch` (tensor operations in golden scripts, test comparison) |
| Test |`pytest` (ut-py, st), `googletest` + `ctest` (ut-cpp) |
58
+
59
+
`pyproject.toml` declares no `[project.dependencies]` — both `torch` and `pytest` are environment prerequisites, not pip-installed transitively. This is intentional: torch's index URL (`--index-url https://download.pytorch.org/whl/cpu`) and hardware-specific builds make automatic resolution impractical.
On macOS, set `KMP_DUPLICATE_LIB_OK=TRUE`to silence the homebrew-numpy + pip-torch libomp collision (also documented in `ci.py`).
139
+
On macOS with `--system-site-packages`, set `KMP_DUPLICATE_LIB_OK=TRUE`if the system numpy is present and its libomp collides with torch's (see `docs/macos-libomp-collision.md`).
129
140
130
141
## Verification protocol when changing package structure
0 commit comments