Commit 0df4909
toolshed: modernize conda_create_for_pathfinder_testing scripts
Bring the bash and PowerShell helpers used to spin up CUDA-pathfinder
test environments into line with how cuda_pathfinder/pyproject.toml is
now organized, and harden them so common shell mistakes surface
immediately.
Highlights:
- Add ``set -euo pipefail`` (bash) and ``Set-StrictMode -Version Latest``
(PowerShell) so unset variables and non-zero exit codes fail loudly.
- Pick the Python version from the CUDA major: ``12.x`` -> 3.12,
``13.x`` -> 3.14. Reject other CUDA majors with a clear error
instead of silently installing 3.13.
- Bash: wrap ``conda activate`` and ``conda install`` in ``set +u`` /
``set -u`` because conda's shims dereference unset variables, which
otherwise abort the script under ``set -u``.
- Realign the conda package lists with the platform-scoped groups in
``cuda_pathfinder/pyproject.toml``:
- Add ``cutlass`` (Linux + Windows) and ``libcusolvermp-dev`` (Linux).
- Drop ``libnvpl-fft-dev`` from the unconditional Linux list and from
Windows entirely.
- On Linux, install ``libnvpl-fft-dev`` only on ``aarch64`` and add
``libcudla-dev`` for the ``cu13``/``aarch64`` combination.
- Drop ``libcublasmp-dev``, ``libcufftmp-dev``, ``libnvshmem3``, and
``libnvshmem-dev`` from the Windows list to match what ``pyproject``
installs there.
- Refresh SPDX copyright to ``2025-2026``.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 64e2e6a commit 0df4909
2 files changed
Lines changed: 67 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
13 | | - | |
| 23 | + | |
14 | 24 | | |
15 | 25 | | |
| 26 | + | |
| 27 | + | |
16 | 28 | | |
17 | 29 | | |
18 | 30 | | |
19 | | - | |
| 31 | + | |
20 | 32 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
11 | 30 | | |
12 | 31 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
26 | 61 | | |
| 62 | + | |
27 | 63 | | |
| 64 | + | |
28 | 65 | | |
0 commit comments