Skip to content
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
637 commits
Select commit Hold shift + click to select a range
1457893
Reject non-contiguous buffers in logical_data
caugonnet Apr 6, 2026
cf7753f
Normalize and validate shape in logical_data.init_by_shape
caugonnet Apr 6, 2026
1f80e6a
pre-commit hooks
caugonnet Apr 6, 2026
1e29a51
Guard CuPy imports in example_potri and example_cholesky
caugonnet Apr 6, 2026
fb5dddf
Add finiteness assertions and clean up FDTD tests
caugonnet Apr 6, 2026
76c7bae
pre-commit hooks
caugonnet Apr 6, 2026
9e95107
Add host_launch to Python STF bindings
caugonnet Apr 6, 2026
8fe3c16
Add stf_fence binding to Python STF context
caugonnet Apr 6, 2026
c9cee96
Expose task.set_symbol() and ctx.task(symbol=) in Python STF bindings
caugonnet Apr 6, 2026
224eba1
Add cuda_kernel bindings to Python STF for efficient CUDA kernel laun…
caugonnet Apr 6, 2026
3cbbdd5
Fix cuda_kernel.launch() to keep all ParamHolder args alive for multi…
caugonnet Apr 6, 2026
f3ef1cd
Harden Python STF bindings with NULL checks and safe __dealloc__
caugonnet Apr 6, 2026
34e7139
Add exec_place_grid, composite data places, and FFI-safe partition_fn_t
caugonnet Apr 6, 2026
21ae4ec
Add task grid introspection: get_grid_dims, get_stream_at_index, get_…
caugonnet Apr 6, 2026
e19673d
Fix unused variable lint warnings in test_composite_places.py
caugonnet Apr 6, 2026
be2552b
Apply ruff-format to test_cuda_kernel.py
caugonnet Apr 6, 2026
3c77d25
Add STF + cuda.compute integration examples (reduce, scan, transform)
caugonnet Apr 6, 2026
0dc2d03
Add ctx.wait(), fix logical_data GC bug, numba_task helper, and simpl…
caugonnet Apr 7, 2026
cbbcc2f
Add task-free place support: exec_place_scope, pick_stream, get_place…
caugonnet Apr 7, 2026
cb05626
Expose data_place::allocate/deallocate through C API, Python bindings…
caugonnet Apr 7, 2026
49ddbe9
Merge branch 'main' into stf_c_api
caugonnet Apr 7, 2026
cab9f71
Merge branch 'main' into stf_c_api
caugonnet Apr 7, 2026
64d5848
Merge branch 'main' into stf_c_api
caugonnet Apr 7, 2026
486ca13
Add exec_place._handle_int property for FFI/ctypes interop
caugonnet Apr 7, 2026
6ed1987
Add STF green context bindings for Python.
caugonnet Apr 8, 2026
bb67603
[STF] Move stream pools to per-handle exec_place_resources registry
caugonnet Apr 20, 2026
7f72b99
[STF] Thread exec_place_resources through stream lookup call sites
caugonnet Apr 20, 2026
dab73bd
[STF] Add C++ tests and docs for explicit exec_place_resources stream…
caugonnet Apr 20, 2026
11b8b8b
[STF] Add C API and Python bindings for stackable contexts and exec_p…
caugonnet Apr 20, 2026
c0fd7d7
[STF] Add stackable-context Python test suite
caugonnet Apr 20, 2026
d547abc
pre-commit hooks
caugonnet Apr 20, 2026
3993bf4
[STF] Port linear algebra examples to nvmath-python + STF workspaces
caugonnet Apr 21, 2026
689c531
[STF] Add no_export empty stackable logical data in C API + Python
caugonnet Apr 22, 2026
93ecafd
[STF] Add explicit push() on stackable logical data in C API + Python
caugonnet Apr 22, 2026
17a2bf7
[STF] Expose async_resources_handle and caller-stream context in Python
caugonnet Apr 23, 2026
faf493b
[STF] Split stackable_ctx::pop() into pop_prologue/pop_epilogue
caugonnet Apr 26, 2026
c283065
[STF] Add C API and Python bindings for launchable stackable pop
caugonnet Apr 26, 2026
829268f
[STF] Make stream_ctx capture-safe and chain across back-to-back cont…
caugonnet Apr 26, 2026
6e857a9
[STF] Add shared-ownership launchable_graph for stackable_ctx
caugonnet Apr 26, 2026
2ae0272
[STF] C API for shared-ownership launchable_graph
caugonnet Apr 26, 2026
7c5b72f
[STF] Python bindings for shared-ownership launchable_graph
caugonnet Apr 26, 2026
32ddf6d
[STF] Add wp_stf Warp adapter and mixed Warp+PyTorch DAG tests
caugonnet Apr 29, 2026
d484e62
[STF] Fix C-facade dispatch for stackable tokens
caugonnet Apr 29, 2026
817bb50
[STF] Make graph_task and stream_task move-only
caugonnet Apr 29, 2026
947d0d2
[STF] Apply pre-commit hook reformatting
caugonnet Apr 29, 2026
f8b7fdd
Use an appropriate description of the DAG which is not a diamond shape
caugonnet Apr 30, 2026
5691af8
Merge main into STF Python bindings
andralex May 1, 2026
5f97c52
Merge remote-tracking branch 'caugonnet/stf_c_api' into work/pr-5315-…
andralex May 1, 2026
1e7c033
Merge remote-tracking branch 'origin/main' into work/pr-5315-merge-fix
andralex May 4, 2026
b3e6867
[STF] Fix CI after main merge
andralex May 4, 2026
81ca39a
[STF] Capture directly into ctx_graph on CTK 12.3+ via cudaStreamBegi…
caugonnet May 5, 2026
4492a10
[STF] Fix cudaErrorStreamCaptureIsolation on token().read() in capture
caugonnet May 6, 2026
e6965a9
[STF] Forward graph_scope finalize_prereqs into parent context
caugonnet May 6, 2026
4f2fb3c
Merge branch 'main' into stf_c_api
caugonnet May 12, 2026
04ec9ad
Remove Warp utility
caugonnet May 11, 2026
160396c
Warp/STF related wrappers are in Warp now
caugonnet May 11, 2026
66aba5b
Expose logical data initializers on stackable STF contexts
caugonnet May 18, 2026
c71b509
Test stackable logical data initializers
caugonnet May 18, 2026
98e3af5
pre-commit hooks
caugonnet May 18, 2026
c1f3eed
Merge branch 'main' into stf_c_api
caugonnet May 18, 2026
55f34c9
Merge branch 'main' into stf_c_api
caugonnet May 18, 2026
fae0627
This test would belong to Warp
caugonnet May 18, 2026
9a54c5a
Remove eager Burger PyTorch reference
caugonnet May 18, 2026
ee49ef6
Add branch while stackable graph example
caugonnet May 18, 2026
0b5262d
Add Python STF task graph helper
caugonnet May 18, 2026
cd232da
Merge remote-tracking branch 'upstream/main' into stf_c_api
caugonnet May 19, 2026
b5939a5
Merge origin/main into stf_c_api
caugonnet May 19, 2026
243062a
pre-commit hooks
caugonnet May 19, 2026
4459823
Use vector in STF places test buffer
caugonnet May 20, 2026
87ce7c8
Merge branch 'main' into stf_c_api
caugonnet May 20, 2026
438acb7
Merge branch 'main' into stf_c_api
andralex May 20, 2026
4e91f5d
Merge branch 'main' into stf_c_api
caugonnet May 21, 2026
12b4129
Merge branch 'main' into stf_c_api
caugonnet May 21, 2026
551d760
Document STF FHE composability examples
caugonnet May 22, 2026
08ce080
Merge branch 'main' into stf_c_api
caugonnet May 22, 2026
2d00b94
[STF] Port stream context capture fixes
caugonnet May 22, 2026
2b6d021
[STF] Use cuda.bindings for runtime calls
caugonnet May 22, 2026
cec4ac4
pre-commit hooks
caugonnet May 22, 2026
209e1f6
[STF] Skip Numba tests when Numba is unavailable
caugonnet May 22, 2026
c4de5c5
Merge branch 'main' into stf_c_api
caugonnet May 25, 2026
ce80f97
Merge branch 'main' into stf_c_api
caugonnet May 26, 2026
327bc18
Fix ruff import-order checks in STF tests
caugonnet May 26, 2026
4e1d024
[STF] ci: schedule base cuda.cccl wheel build for py3.13
andralex May 19, 2026
35c405d
Merge cuda-cccl-experimental into cuda-cccl as cuda.stf._experimental
caugonnet May 26, 2026
e3c3316
pre-commit hooks
caugonnet May 26, 2026
ded36ad
Remove STF debug probes and ad-hoc benchmark scripts
caugonnet May 26, 2026
545179b
Remove stray graphviz artifacts from repo root
caugonnet May 26, 2026
14d7f81
ci: drop ghost `python_experimental` project after STF merger
caugonnet May 26, 2026
f241555
Merge branch 'main' into stf_c_api
caugonnet May 26, 2026
364fee9
Merge branch 'main' into stf_c_api
caugonnet May 27, 2026
3fd17d3
[STF] Remove experimental LLM and MLP demos
caugonnet May 27, 2026
0e014b7
[STF] Remove experimental Warp simulation mockup
caugonnet May 27, 2026
ad7bb2e
[STF] Reorganize Python STF tests and promote interop adapters
caugonnet May 27, 2026
b470925
Merge branch 'main' into stf_c_api
caugonnet May 27, 2026
294b486
Merge branch 'main' into stf_c_api
caugonnet May 27, 2026
8ea81e9
pre-commit hooks
caugonnet May 27, 2026
efbcad3
Merge branch 'main' into stf_c_api
caugonnet May 27, 2026
edb3c43
Merge branch 'main' into stf_c_api
caugonnet May 28, 2026
e42c596
[STF] Use local extern C guards in C API header
caugonnet May 28, 2026
efc47ce
Merge branch 'main' into stf_c_api
caugonnet May 29, 2026
89dc425
Merge branch 'main' into stf_c_api
caugonnet May 31, 2026
01f0bf4
Merge branch 'main' into stf_c_api
caugonnet Jun 2, 2026
10568d5
do not touch this doc
caugonnet Jun 2, 2026
4fa8dc7
We don't use cccl/c/extern_c.h anymore
caugonnet Jun 2, 2026
f353320
revert useless change
caugonnet Jun 2, 2026
29ba25d
Merge branch 'main' into stf_c_api
caugonnet Jun 3, 2026
d96ced9
Update c2h_dependency inspect_changes fixture for python dep
caugonnet Jun 3, 2026
eb87418
[STF] Remove stackable_token_push_prologue debug probe
caugonnet Jun 3, 2026
d08b214
[STF] Remove duplicated stackable_ctx relaunch tests
caugonnet Jun 3, 2026
035a30a
[STF] Reframe stackable token push test comments as regression coverage
caugonnet Jun 3, 2026
6110331
[STF] Document Python interop adapters and fix stale doc links
caugonnet Jun 3, 2026
49df167
[STF] Guard optional torch/warp imports in Python STF tests
caugonnet Jun 3, 2026
a07cae1
[STF] Add missing license headers and fix set_exec_place in Python STF
caugonnet Jun 3, 2026
bbddedc
[STF] Slim and split Python Neural ODE examples
caugonnet Jun 3, 2026
dbee3d8
[STF] Reframe lifecycle test docstrings as regression coverage
caugonnet Jun 3, 2026
e65d392
Fix unified_task::get_stream(place_index) type check
caugonnet Jun 4, 2026
849f388
[STF] Skip cudax tests/examples in Python package build
caugonnet Jun 6, 2026
a1575f5
[STF] Use keyword args for cuda.compute calls in STF tests
caugonnet Jun 6, 2026
6928491
[STF] Fix broken imports and gate torch tests in STF tests
caugonnet Jun 6, 2026
eea8693
[STF] Unpack cuda-python error tuples in DeviceArray memcpy
caugonnet Jun 6, 2026
572eff3
[STF] Ship STF dev headers in cuda-cccl wheel + path discovery helpers
caugonnet Jun 6, 2026
6207eb7
[STF] Harden cuda-cccl path discovery for build isolation
caugonnet Jun 6, 2026
1aee7be
[STF] Add exec_place/data_place.from_handle and ExecPlaceLike duck-ty…
caugonnet Jun 6, 2026
10b4fb2
[STF] Test green-context places C API
caugonnet Jun 8, 2026
c238595
[STF] Avoid CuPy for zero logical data fills
caugonnet Jun 8, 2026
56818a9
[STF] Guard stf_machine_init at the C boundary
caugonnet Jun 8, 2026
908f59b
Merge branch 'main' into stf_c_api
caugonnet Jun 8, 2026
ca3c399
Merge branch 'main' into stf_c_api
caugonnet Jun 9, 2026
c71fa7e
Merge branch 'main' into stf_c_api
caugonnet Jun 9, 2026
13d88ee
[STF] Resolve graph instantiate conflict markers
caugonnet Jun 9, 2026
75b2a8c
Merge branch 'main' into stf_c_api
caugonnet Jun 9, 2026
836a023
[STF] Harden Python dep typing and path resolution
caugonnet Jun 9, 2026
cd0f0c0
[STF] Switch Burger examples to BiCGSTAB solver
caugonnet Jun 9, 2026
6f0ecf9
[STF] Skip nvmath-dependent examples when unavailable
caugonnet Jun 9, 2026
eabf767
[STF] Remove duplicate graph instantiation call
caugonnet Jun 9, 2026
2a15440
[STF] Clarify numba.jit context inference failures
caugonnet Jun 9, 2026
9af49af
[STF] Tighten numba interop error and exec_place validation
caugonnet Jun 9, 2026
3342fd1
pre-commit hooks
caugonnet Jun 9, 2026
a89c8b1
[STF] Fix stackable host_launch test and v2 build toggles
caugonnet Jun 9, 2026
07d55cf
Merge branch 'main' into stf_c_api
caugonnet Jun 9, 2026
8d6cc27
Merge branch 'main' into stf_c_api
caugonnet Jun 9, 2026
685ab5b
Update c2h inspect_changes expected lite output.
caugonnet Jun 10, 2026
82d20ce
Merge branch 'main' into stf_c_api
caugonnet Jun 10, 2026
c893ca9
[STF] Skip Python STF tests when compiled bindings are unavailable
caugonnet Jun 10, 2026
37c960c
Merge branch 'main' into stf_c_api
caugonnet Jun 10, 2026
8c05e60
pre-commit hooks
caugonnet Jun 10, 2026
f18ac6c
[STF] Remove duplicate host_launch C tests
caugonnet Jun 10, 2026
40540d5
[STF] Fix numba_task to end the STF task on setup failure
caugonnet Jun 10, 2026
677c381
[STF] Document that cross-context deps are rejected by the core
caugonnet Jun 10, 2026
20f730b
[STF] Fix and expand cuda.stf._experimental Python docs
caugonnet Jun 10, 2026
384102b
Merge branch 'main' into stf_c_api
caugonnet Jun 10, 2026
5f3e210
[STF] Use a realistic axpy chain as the Python intro example
caugonnet Jun 10, 2026
59d8620
[STF] Stabilize unfinalized context warning test
caugonnet Jun 10, 2026
4b066f7
[STF] Guard fill utils tests on bindings availability
caugonnet Jun 10, 2026
bd825ea
[STF] Scope Numba warning config in tests
caugonnet Jun 10, 2026
076fe32
[STF] Validate cuda_cccl wheel lookup in CI
caugonnet Jun 10, 2026
e32d9f3
[STF] Align lite Python STF CI version
caugonnet Jun 10, 2026
3fa91d2
[STF] Align BiCGSTAB test iteration count
caugonnet Jun 10, 2026
50188fb
[STF] Fail on unsupported PDSYMM side
caugonnet Jun 10, 2026
82194f3
[STF] Clarify stream ID handling during capture
caugonnet Jun 10, 2026
687aefb
[STF] Stabilize Warp stream cache key
caugonnet Jun 10, 2026
16ebcd5
[STF] Match Numba test sizes to launches
caugonnet Jun 10, 2026
2da1c87
Merge branch 'main' into stf_c_api
caugonnet Jun 10, 2026
d74bdd9
pre-commit hooks
caugonnet Jun 10, 2026
659a8e3
[STF] Preserve diffusion boundary values
caugonnet Jun 11, 2026
980a2e8
[STF] Remove standalone main blocks from tests
caugonnet Jun 11, 2026
34188f6
[STF] Require matplotlib for FDTD diagnostics
caugonnet Jun 11, 2026
44f8384
[STF] Validate DeviceArray inputs
caugonnet Jun 11, 2026
308ccc7
[STF] Make task graph reset cleanup-safe
caugonnet Jun 11, 2026
f6bba0c
Merge branch 'main' into stf_c_api
caugonnet Jun 11, 2026
b06e62d
[STF] Address Burger review nitpicks
caugonnet Jun 11, 2026
4600142
Merge branch 'main' into stf_c_api
caugonnet Jun 11, 2026
ade7c92
[STF] Address CodeRabbit follow-up review
caugonnet Jun 11, 2026
e892da6
pre-commit hooks
caugonnet Jun 11, 2026
05d90f0
[STF] Clarify Burger reference docstring
caugonnet Jun 11, 2026
4f93f06
Merge branch 'main' into stf_c_api
caugonnet Jun 11, 2026
b48b384
Remove stream pool changes from STF C API branch
caugonnet Jun 11, 2026
7a729d6
Restore merged stream pool comments
caugonnet Jun 11, 2026
1a08dde
Merge branch 'main' into stf_c_api
caugonnet Jun 11, 2026
bf1d107
Clarify task graph factory docs
caugonnet Jun 12, 2026
e4d533d
Merge branch 'main' into stf_c_api
caugonnet Jun 12, 2026
0f40e7a
Merge branch 'main' into stf_c_api
caugonnet Jun 22, 2026
a4917ad
stf: implement mem_create for green_ctx data place + name it by handle
caugonnet Jun 22, 2026
8cdae5e
Merge branch 'main' into stf_c_api
caugonnet Jul 1, 2026
f568c81
Merge branch 'main' into stf_c_api
caugonnet Jul 2, 2026
f2670d6
[STF] Accept CUDA stream protocol objects
caugonnet Jul 2, 2026
21d2ea7
[STF] Preserve structured CAI metadata
caugonnet Jul 2, 2026
5724d1a
[STF] Release borrowed place resources handles
caugonnet Jul 2, 2026
11f2e8a
[STF] Reject cross-context Python deps
caugonnet Jul 2, 2026
4c3c49d
Merge branch 'main' into stf_c_api
caugonnet Jul 2, 2026
9529906
pre-commit hooks
caugonnet Jul 2, 2026
5eddfed
[STF] Add multi-GPU Python CI coverage
caugonnet Jul 2, 2026
de030ef
Pin numba below 0.66 for Python CUDA extras
caugonnet Jul 2, 2026
649efcf
Merge branch 'main' into stf_c_api
caugonnet Jul 2, 2026
e8aa706
[STF] Split cuda.stf into a standalone cuda-stf package
caugonnet Jul 3, 2026
6402287
[STF] Make cuda-stf standalone; drop hard cuda-cccl dependency
caugonnet Jul 3, 2026
6191f45
Merge branch 'main' into stf_c_api
caugonnet Jul 3, 2026
bf3f3cd
pre-commit hooks
caugonnet Jul 3, 2026
ee08ce0
Merge branch 'main' into stf_c_api
caugonnet Jul 4, 2026
2bf929e
Fix use of `reduce_policy`
davebayer Jul 3, 2026
60f9329
[STF] Revert leftover cuda-cccl changes from the STF split
caugonnet Jul 4, 2026
cd181aa
Merge branch 'main' into stf_c_api
caugonnet Jul 4, 2026
9a015d4
Merge branch 'main' into stf_c_api
caugonnet Jul 8, 2026
3f46ed3
[STF] Reject cross-context waits in Python
caugonnet Jul 8, 2026
3862573
[STF] Reject noncontiguous CAI inputs
caugonnet Jul 8, 2026
a0bfbf7
Apply suggestion from @Jacobfaib
caugonnet Jul 8, 2026
f0f5504
[STF] Fix standalone Python documentation
caugonnet Jul 8, 2026
79f8817
Merge branch 'main' into stf_c_api
caugonnet Jul 9, 2026
be563bf
[STF] Add exec places from externally-owned CUDA contexts
caugonnet Jul 10, 2026
b19c931
[STF] Python: exec_place.from_context and cuda.core-backed green_plac…
caugonnet Jul 10, 2026
9a78a9f
[STF] Reject a null CUcontext in exec_place::cuda_context
caugonnet Jul 10, 2026
82c264f
[STF] Remove PR reference from CODEOWNERS comment
caugonnet Jul 10, 2026
8ceb5bb
Merge branch 'main' into stf_c_api
caugonnet Jul 13, 2026
77b1239
Merge branch 'main' into stf_c_api
caugonnet Jul 15, 2026
9ee10c4
[pre-commit.ci] auto code formatting
pre-commit-ci[bot] Jul 15, 2026
f136e94
Merge branch 'main' into stf_c_api
caugonnet Jul 15, 2026
c5add2b
[cuda.stf] Simplify Python CMake configuration
caugonnet Jul 16, 2026
5e2f4d5
Merge branch 'main' into stf_c_api
caugonnet Jul 16, 2026
8eca120
[cuda.stf] Remove historical package commentary
caugonnet Jul 16, 2026
d10c312
Merge branch 'main' into stf_c_api
caugonnet Jul 17, 2026
dd39a9b
cudax/stf (python): resolve PR 5315 review findings
caugonnet Jul 17, 2026
a773057
cudax/stf (python): defer async_resources release for caller-stream c…
caugonnet Jul 17, 2026
13ef970
cudax/stf (python): reject imported CAI buffers that carry a producer…
caugonnet Jul 17, 2026
f101d43
cudax/stf (python): update tests for CAI stream=None and driver-based…
caugonnet Jul 17, 2026
accc384
cudax/stf (python): address CodeRabbit review findings
caugonnet Jul 17, 2026
407e646
Merge branch 'main' into stf_c_api
caugonnet Jul 18, 2026
b9b1254
Merge branch 'main' into stf_c_api
caugonnet Jul 19, 2026
be61301
[STF] Support compound while-loop conditions in the C API and Python …
caugonnet Jul 19, 2026
1b291c4
[STF] Use compound while conditions in the Python examples
caugonnet Jul 19, 2026
126896b
[STF] Document compound while conditions in the Python API reference
caugonnet Jul 19, 2026
f32ff62
[STF] Add a device-side loops section to the Python STF guide
caugonnet Jul 19, 2026
0bbdd60
[STF] Be honest about cond_handle usability from Python
caugonnet Jul 19, 2026
1a7d3a4
[STF] Harden stackable logical_data registration from Python buffers
caugonnet Jul 19, 2026
2f41158
[STF] Preserve body-exception precedence in numba_task cleanup
caugonnet Jul 19, 2026
4610a32
[STF] Validate results by default in the cholesky and potri examples
caugonnet Jul 19, 2026
e739557
[STF] Synchronize the CAI producer stream at registration
caugonnet Jul 19, 2026
61e7d3f
[STF] Note that the cuda_kernel doc snippet is an excerpt
caugonnet Jul 19, 2026
93918dc
[STF] Note that the numba_task doc snippet is an excerpt
caugonnet Jul 19, 2026
cbceed3
[STF] Apply review nitpicks in Python tests
caugonnet Jul 19, 2026
b8ea935
[STF] Apply review nitpicks in Python examples and bindings
caugonnet Jul 19, 2026
23d1b57
[STF] Resolve the stream pointer before pinning primary contexts
caugonnet Jul 19, 2026
9ef5687
[STF] Point pytorch_task and jit doc snippets at their complete tests
caugonnet Jul 20, 2026
64db026
[STF] Point the while_loop doc snippet at the complete cg.py solver
caugonnet Jul 20, 2026
3e8b3fa
Merge branch 'main' into stf_c_api
caugonnet Jul 20, 2026
a4032b0
Merge branch 'main' into stf_c_api
caugonnet Jul 20, 2026
8dc1432
[STF] Fix stale docstring in graph_scope while_loop test
caugonnet Jul 20, 2026
4e3d6f4
[STF] Preload cudart before importing the compiled bindings
caugonnet Jul 21, 2026
60cd8e5
[STF] Route the CAI producer-stream sync through cuda.bindings
caugonnet Jul 21, 2026
de7befe
[STF] Drop PR-history references from binding comments
caugonnet Jul 21, 2026
c0b8626
Merge branch 'main' into stf_c_api
caugonnet Jul 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ Supported versions: `3.10`, `3.11`, `3.12`, `3.13`

* **cuda.compute** — Device-level algorithms, iterators, custom GPU types
* **cuda.coop._experimental** — Block/warp-level primitives for Numba CUDA
* **cuda.stf._experimental** — Stream Task Flow (CUDASTF) Python bindings, shipped in the standalone `cuda-stf` package (Linux only)
* **cuda.cccl.headers** — Programmatic access to headers

### Installation
Expand Down Expand Up @@ -262,14 +263,16 @@ include_paths = headers.get_include_paths()
./ci/test_cuda_coop_python.sh -py-version 3.10
./ci/test_cuda_cccl_headers_python.sh -py-version 3.10
./ci/test_cuda_cccl_examples_python.sh -py-version 3.10
./ci/test_cuda_stf_python.sh -py-version 3.10 # Linux only
```

Test organization:

* `tests/compute` — Algorithms and iterators
* `tests/coop` — Cooperative primitives
* `tests/headers` — Header integration
* `test_examples.py` — Runs compute/coop examples
* `python/cuda_stf/tests/stf` — Sequential Task Flow (separate `cuda-stf` package, Linux only)
* `test_examples.py` — Runs compute/coop examples (STF examples live in `python/cuda_stf/tests/test_examples.py`)

---

Expand Down
169 changes: 169 additions & 0 deletions ci/build_cuda_stf_python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
#!/usr/bin/env bash
set -euo pipefail

ci_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

usage="Usage: $0 -py-version <python_version> [additional options...]"

# shellcheck source=ci/util/python/common_arg_parser.sh
source "$ci_dir/util/python/common_arg_parser.sh"
parse_python_args "$@"

# Check if py_version was provided (this script requires it)
require_py_version "$usage" || exit 1

echo "Docker socket: " "$(ls /var/run/docker.sock)"

if [[ -n "${GITHUB_ACTIONS:-}" ]]; then
# Prepare mount points etc for getting artifacts in/out of the container.
# shellcheck source=ci/util/artifacts/common.sh
source "$ci_dir/util/artifacts/common.sh"
# Note that these mounts use the runner (not the devcontainer) filesystem for
# source directories because of docker-out-of-docker quirks.
# The workflow-job GH actions make sure that they exist before running any
# scripts.
action_mounts=(
--mount "type=bind,source=${ARTIFACT_ARCHIVES},target=${ARTIFACT_ARCHIVES}"
--mount "type=bind,source=${ARTIFACT_UPLOAD_STAGE},target=${ARTIFACT_UPLOAD_STAGE}"
)
else
# If not running in GitHub Actions, we don't need to set up artifact mounts.
action_mounts=()
fi

# cuda_stf must be built in a container that can produce manylinux wheels, and
# has the CUDA toolkit installed. We use the rapidsai/ci-wheel image for this.
# We build separate wheels using separate containers for each CUDA version,
# then merge them into a single wheel. CUDASTF is Linux-only.

readonly cuda12_version=12.9.1
readonly cuda13_version=13.1.1
readonly devcontainer_version=26.04
readonly devcontainer_distro=rockylinux8
# Use a baseline Python tag for the rapidsai ci-wheel image. The requested
# py_version is installed inside the container by setup_python_env (uv).
readonly devcontainer_python_version=3.10

if [[ "$(uname -m)" == "aarch64" ]]; then
cuda12_image="rapidsai/ci-wheel:${devcontainer_version}-cuda${cuda12_version}-${devcontainer_distro}-py${devcontainer_python_version}-arm64"
cuda13_image="rapidsai/ci-wheel:${devcontainer_version}-cuda${cuda13_version}-${devcontainer_distro}-py${devcontainer_python_version}-arm64"
else
cuda12_image="rapidsai/ci-wheel:${devcontainer_version}-cuda${cuda12_version}-${devcontainer_distro}-py${devcontainer_python_version}"
cuda13_image="rapidsai/ci-wheel:${devcontainer_version}-cuda${cuda13_version}-${devcontainer_distro}-py${devcontainer_python_version}"
fi
# shellcheck disable=SC2034
readonly cuda12_image
# shellcheck disable=SC2034
readonly cuda13_image

mkdir -p wheelhouse

# Shared caches across the cu12 + cu13 wheel builds. Both jobs compile an
# identical LLVM/clang tree (LLVM has no CUDA dep), so a shared ccache cuts
# the second build's LLVM phase substantially; a shared CPM source cache skips
# the second LLVM git clone entirely.
mkdir -p ./.ccache ./.cpm-cache
host_ccache_dir="${HOST_WORKSPACE:?}/.ccache"
host_cpm_cache_dir="${HOST_WORKSPACE:?}/.cpm-cache"

for ctk in 12 13; do
image="cuda${ctk}_image"
image="${!image}"
echo "::group::⚒️ Building CUDA $ctk cuda-stf wheel on $image"
(
Comment thread
coderabbitai[bot] marked this conversation as resolved.
set -x
docker pull "$image"
docker run --rm -i \
--workdir /workspace/python/cuda_stf \
--mount "type=bind,source=${HOST_WORKSPACE:?},target=/workspace/" \
--mount "type=bind,source=${host_ccache_dir},target=/root/.ccache" \
--mount "type=bind,source=${host_cpm_cache_dir},target=/root/.cpm-cache" \
"${action_mounts[@]}" \
--env "py_version=${py_version}" \
--env "GITHUB_ACTIONS=${GITHUB_ACTIONS:-}" \
--env "GITHUB_RUN_ID=${GITHUB_RUN_ID:-}" \
--env "JOB_ID=${JOB_ID:-}" \
--env "CCACHE_DIR=/root/.ccache" \
--env "CPM_SOURCE_CACHE=/root/.cpm-cache" \
"$image" \
/workspace/ci/build_cuda_stf_wheel.sh
# Prevent GHA runners from exhausting available storage with leftover images:
if [[ -n "${GITHUB_ACTIONS:-}" ]]; then
docker rmi -f "$image"
fi
)
echo "::endgroup::"
done

echo "Merging CUDA wheels..."

# Set up a Python environment for the merge/repair steps.
source "$ci_dir/pyenv_helper.sh"
setup_python_env "${py_version}"

# Needed for unpacking and repacking wheels.
python -m pip install wheel

# Find the built wheels
cu12_wheel=$(find wheelhouse -name "cuda_stf-*cu12*.whl" | head -1)
cu13_wheel=$(find wheelhouse -name "cuda_stf-*cu13*.whl" | head -1)

if [[ -z "$cu12_wheel" ]]; then
echo "Error: CUDA 12 cuda-stf wheel not found in wheelhouse/"
ls -la wheelhouse/
exit 1
fi

if [[ -z "$cu13_wheel" ]]; then
echo "Error: CUDA 13 cuda-stf wheel not found in wheelhouse/"
ls -la wheelhouse/
exit 1
fi

echo "Found CUDA 12 wheel: $cu12_wheel"
echo "Found CUDA 13 wheel: $cu13_wheel"

# Merge the wheels
python python/cuda_stf/merge_cuda_wheels.py "$cu12_wheel" "$cu13_wheel" --output-dir wheelhouse_merged

# Install auditwheel and repair the merged wheel
python -m pip install patchelf auditwheel
for wheel in wheelhouse_merged/cuda_stf-*.whl; do
echo "Repairing merged wheel: $wheel"
python -m auditwheel repair \
--exclude 'libnvrtc.so.12' \
--exclude 'libnvrtc.so.13' \
--exclude 'libnvJitLink.so.12' \
--exclude 'libnvJitLink.so.13' \
--exclude 'libcudart.so.12' \
--exclude 'libcudart.so.13' \
--exclude 'libcuda.so.1' \
"$wheel" \
--wheel-dir wheelhouse_final
done

# Clean up intermediate files and move only the final merged wheel to wheelhouse
rm -rf wheelhouse/* # Clean existing wheelhouse
mkdir -p wheelhouse

# Move only the final repaired merged wheel
if ls wheelhouse_final/cuda_stf-*.whl 1> /dev/null 2>&1; then
mv wheelhouse_final/cuda_stf-*.whl wheelhouse/
echo "Final merged wheel moved to wheelhouse"
else
echo "No final repaired wheel found, moving unrepaired merged wheel"
mv wheelhouse_merged/cuda_stf-*.whl wheelhouse/
fi

# Clean up temporary directories
rm -rf wheelhouse_merged wheelhouse_final

echo "Final wheels in wheelhouse:"
ls -la wheelhouse/

if [[ -n "${GITHUB_ACTIONS:-}" ]]; then
# Upload under a distinct artifact name so it does not clobber the cuda-cccl
# wheel (both build jobs run in project 'python').
wheel_artifact_name="$(CCCL_WHEEL_KIND=stf ci/util/workflow/get_wheel_artifact_name.sh)"
ci/util/artifacts/upload.sh "$wheel_artifact_name" 'wheelhouse/.*'
fi
82 changes: 82 additions & 0 deletions ci/build_cuda_stf_wheel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env bash
set -euo pipefail

# Target script for `docker run` command in build_cuda_stf_python.sh
# The /workspace pathnames are hard-wired here.

# Install GCC 13 toolset (needed for the build) and ccache (shared between
# cu12 and cu13 builds via /root/.ccache bind-mount from the host).
/workspace/ci/util/retry.sh 5 30 dnf -y install \
gcc-toolset-13-gcc gcc-toolset-13-gcc-c++ ccache

# When the caller bind-mounts a ccache dir, wire it through to CMake. This
# transparently caches every compile, so the second wheel build (cu13 after
# cu12, or vice versa) reuses the entire LLVM/clang object tree.
if [[ -n "${CCACHE_DIR:-}" ]]; then
export CMAKE_C_COMPILER_LAUNCHER=ccache
export CMAKE_CXX_COMPILER_LAUNCHER=ccache
export CMAKE_CUDA_COMPILER_LAUNCHER=ccache
echo "ccache enabled: CCACHE_DIR=${CCACHE_DIR}"
ccache --version 2>&1 | head -1 || true
ccache --show-stats 2>&1 | head -5 || true
fi
echo -e "#!/usr/bin/env bash\nsource /opt/rh/gcc-toolset-13/enable" >/etc/profile.d/enable_devtools.sh
# shellcheck disable=SC1091
source /etc/profile.d/enable_devtools.sh

# Check what's available
command -v gcc
gcc --version
command -v nvcc
nvcc --version

# Set up Python environment
# shellcheck source=ci/pyenv_helper.sh
source /workspace/ci/pyenv_helper.sh
# shellcheck disable=SC2154
setup_python_env "${py_version}"
command -v python
python --version
echo "Done setting up python env"

# Figure out the version to use for the package, we need repo history
if "$(git rev-parse --is-shallow-repository)"; then
git fetch --unshallow
fi
# Match the cuda-cccl version prefix so cuda-stf and cuda-cccl stay in lockstep.
export PACKAGE_VERSION_PREFIX="0.1."
package_version=$(/workspace/ci/generate_version.sh)
echo "Using package version ${package_version}"
# Override the version used by setuptools_scm to the custom version
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CUDA_STF="${package_version}"

cd /workspace/python/cuda_stf

# Determine CUDA version from nvcc
cuda_version=$(nvcc --version | grep -oP 'release \K[0-9]+\.[0-9]+' | cut -d. -f1)
echo "Detected CUDA version: ${cuda_version}"

# Configure compilers:
CXX="$(command -v g++)"
export CXX
CUDACXX="$(command -v nvcc)"
export CUDACXX
CUDAHOSTCXX="$(command -v g++)"
export CUDAHOSTCXX

# Build the wheel
python -m pip wheel --no-deps --verbose --wheel-dir dist .

# Rename wheel to include CUDA version suffix
for wheel in dist/cuda_stf-*.whl; do
if [[ -f "$wheel" ]]; then
base_name=$(basename "$wheel" .whl)
new_name="${base_name}.cu${cuda_version}.whl"
mv "$wheel" "dist/${new_name}"
echo "Renamed wheel to: ${new_name}"
fi
done

# Move wheel to output directory
mkdir -p /workspace/wheelhouse
mv dist/cuda_stf-*.cu*.whl /workspace/wheelhouse/
24 changes: 23 additions & 1 deletion ci/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ workflows:
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.X'], py_version: ['3.10'], gpu: 'l4', cxx: ['gcc13', 'msvc2022']}
- {jobs: ['test'], project: 'python', ctk: ['12.X','13.0', '13.X'], py_version: ['3.14'], gpu: 'l4', cxx: ['gcc13', 'msvc2022']}
- {jobs: ['test'], project: 'python', py_version: '3.14', gpu: 'h100', cxx: 'gcc13'}
# py3.13 base wheel is needed by the cuda.stf._experimental tests below,
# which depend on `build_py_wheel`. Linux/gcc13 only, matching the STF
# matrix footprint.
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.X'], py_version: ['3.13'], gpu: 'l4', cxx: 'gcc13'}
# cuda.stf._experimental -- pinned to gcc13, Linux only
- {jobs: ['test_py_stf'], project: 'python', ctk: ['12.X', '13.X'], py_version: ['3.13'], gpu: 'l4', cxx: 'gcc13'}
- {jobs: ['test_py_stf'], project: 'python', ctk: '13.X', py_version: '3.13', gpu: 'h100_2gpu', cxx: 'gcc13'}
- {jobs: ['test_py_compute_minimal'], project: 'python', ctk: '13.X', py_version: '3.14', gpu: 'l4', cxx: 'gcc13'}
# CCCL packaging:
- {jobs: ['test'], project: 'packaging', ctk: '12.0', cxx: ['gcc10', 'clang14'], gpu: 'rtx2080', args: '-min-cmake'}
Expand Down Expand Up @@ -152,6 +159,7 @@ workflows:
- {project: 'cccl_c_parallel', jobs: ['test'], ctk: '13.X', cxx: 'gcc13', gpu: 'rtxpro6000', sm: 'gpu'}
- {project: 'cccl_c_stf', jobs: ['test'], ctk: '13.X', cxx: 'gcc13', gpu: 'rtx2080', sm: 'gpu'}
- {project: 'python', jobs: ['test'], ctk: '13.X', py_version: '3.14', gpu: 'l4', cxx: ['gcc13', 'msvc2022']}
- {project: 'python', jobs: ['test_py_stf'], ctk: '13.X', py_version: '3.13', gpu: 'l4', cxx: 'gcc13'}
# Packaging / install
- {project: 'packaging', jobs: ['test'], ctk: '13.X', cxx: ['gcc', 'clang'], gpu: 'rtx2080', sm: 'gpu'}
- {project: 'packaging', jobs: ['test'], args: '-min-cmake', gpu: 'rtx2080', sm: 'gpu'}
Expand Down Expand Up @@ -230,6 +238,9 @@ workflows:
# Python -- pinned to gcc13 / msvc2022 on Linux for consistency across CTK images
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.0', '13.X'], py_version: ['3.10', '3.11', '3.12', '3.13', '3.14'], gpu: 'l4', cxx: ['gcc13', 'msvc2022']}
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.X'], py_version: '3.14', gpu: 'h100', cxx: 'gcc13'}
# cuda.stf._experimental -- pinned to gcc13, Linux only
- {jobs: ['test_py_stf'], project: 'python', ctk: ['12.X', '13.X'], py_version: ['3.10', '3.13'], gpu: 'l4', cxx: 'gcc13'}
- {jobs: ['test_py_stf'], project: 'python', ctk: '13.X', py_version: '3.13', gpu: 'h100', cxx: 'gcc13'}
# CCCL packaging:
- {jobs: ['test'], project: 'packaging', ctk: '12.0', cxx: ['gcc10', 'clang14'], gpu: 'rtx2080', args: '-min-cmake'}
- {jobs: ['test'], project: 'packaging', ctk: '12.X', cxx: ['gcc10', 'clang14'], gpu: 'rtx2080'}
Expand Down Expand Up @@ -325,6 +336,9 @@ workflows:
# Python -- pinned to gcc13 / msvc2022 for consistency across CTK images
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.0', '13.X'], py_version: ['3.10', '3.11', '3.12', '3.13', '3.14'], gpu: 'l4', cxx: ['gcc13', 'msvc2022']}
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.X'], py_version: '3.14', gpu: 'h100', cxx: ['gcc13', 'msvc2022']}
# cuda.stf._experimental -- pinned to gcc13, Linux only
- {jobs: ['test_py_stf'], project: 'python', ctk: ['12.X', '13.X'], py_version: ['3.10', '3.13'], gpu: 'l4', cxx: 'gcc13'}
- {jobs: ['test_py_stf'], project: 'python', ctk: '13.X', py_version: '3.13', gpu: 'h100', cxx: 'gcc13'}
# CCCL packaging:
- {jobs: ['test'], project: 'packaging', ctk: '12.0', cxx: ['gcc10', 'clang14'], gpu: 'rtx2080', args: '-min-cmake'}
- {jobs: ['test'], project: 'packaging', ctk: '12.X', cxx: ['gcc10', 'clang14'], gpu: 'rtx2080'}
Expand Down Expand Up @@ -356,7 +370,7 @@ workflows:
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.0', '13.X'], py_version: ['3.10', '3.11', '3.12', '3.13', '3.14'], gpu: 'l4', cxx: ['gcc13', 'msvc2022']}
- {jobs: ['test'], project: 'python', ctk: ['12.X', '13.X'], py_version: '3.14', gpu: 'h100', cxx: ['gcc13', 'msvc2022']}
- {jobs: ['test'], project: 'python', cpu: 'arm64', ctk: ['12.X', '13.X'], py_version: ['3.10', '3.11', '3.12', '3.13', '3.14'], gpu: 'l4', cxx: 'gcc13'}

- {jobs: ['test_py_stf'], project: 'python', ctk: ['12.X', '13.X'], py_version: ['3.10', '3.13'], gpu: 'l4', cxx: 'gcc13'}

# This is just used to ensure that we generate devcontainers for all images we build.
# These do not map to any actual jobs.
Expand Down Expand Up @@ -384,6 +398,8 @@ workflows:
exclude:
# GPU runners are not available on Windows.
- {jobs: ['test', 'test_gpu', 'test_nolid', 'test_lid0', 'test_lid1', 'test_lid2'], cxx: ['msvc2019', 'msvc14.39', 'msvc2022', 'msvc2026']}
# cuda.stf._experimental is Linux-only.
- {jobs: ['test_py_stf'], cxx: ['msvc2019', 'msvc14.39', 'msvc2022', 'msvc2026']}
# cudax doesn't support C++17 on msvc:
- {project: 'cudax', std: 17, cxx: ['msvc2019', 'msvc14.39', 'msvc2022', 'msvc2026']}

Expand Down Expand Up @@ -544,11 +560,17 @@ jobs:

# Python:
build_py_wheel: { name: "Build cuda.cccl", gpu: false, invoke: { prefix: 'build_cuda_cccl'} }
build_py_stf_wheel: { name: "Build cuda.stf", gpu: false, invoke: { prefix: 'build_cuda_stf'} }
test_py_headers: { name: "Test cuda.cccl.headers", gpu: true, needs: 'build_py_wheel', force_producer_ctk: "pybuild", invoke: { prefix: 'test_cuda_cccl_headers'} }
test_py_coop: { name: "Test cuda.coop._experimental", gpu: true, needs: 'build_py_wheel', force_producer_ctk: "pybuild", invoke: { prefix: 'test_cuda_coop'} }
test_py_par: { name: "Test cuda.compute", gpu: true, needs: 'build_py_wheel', force_producer_ctk: "pybuild", invoke: { prefix: 'test_cuda_compute'} }
test_py_compute_minimal: { name: "Test cuda.compute minimal", gpu: true, needs: 'build_py_wheel', force_producer_ctk: "pybuild", invoke: { prefix: 'test_cuda_compute_minimal'} }
test_py_examples: { name: "Test cuda.cccl.examples", gpu: true, needs: 'build_py_wheel', force_producer_ctk: "pybuild", invoke: { prefix: 'test_cuda_cccl_examples'} }
# cuda-stf is standalone: it ships the STF bindings + its own headers and has
# no hard cuda-cccl dependency, so only the cuda-stf wheel is needed. The
# interop tests' optional cuda-cccl (for cuda.compute) comes from the test
# extra.
test_py_stf: { name: "Test cuda.stf._experimental", gpu: true, needs: 'build_py_stf_wheel', force_producer_ctk: "pybuild", invoke: { prefix: 'test_cuda_stf'} }

# Run jobs for 'target' project (ci/util/build_and_test_targets.sh):
run_cpu: { gpu: false }
Expand Down
8 changes: 6 additions & 2 deletions ci/project_files_and_dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,15 @@ projects:
python:
name: "Python"
matrix_project: "python"
lite_dependencies: [cccl_c_parallel_public]
lite_dependencies: [cccl_c_parallel_public, cccl_c_stf]
full_dependencies: []
include_regexes:
- "python/"
- "python/cuda_cccl/"
# cuda-stf is a separate distribution but is built/tested by the same
# 'python' matrix jobs (build_py_stf_wheel / test_py_stf).
- "python/cuda_stf/"
- "pyproject.toml"
exclude_regexes: []

packaging:
name: "CCCL Packaging"
Expand Down
2 changes: 1 addition & 1 deletion ci/test/inspect_changes/c2h_dependency.output
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FULL_BUILD=tidy
LITE_BUILD=libcudacxx cub cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 cccl_c_stf packaging
LITE_BUILD=libcudacxx cub cudax cccl_c_parallel cccl_c_parallel_v2 python_v2 cccl_c_stf python packaging
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Loading