cudax/stf: cuda_try migration — graph misc (PR6)#9301
Conversation
Convert the three remaining leaf graph headers (event_types, void_interface, slice) to templated cuda_try for graph node creation calls.
|
/ok to test b854c6c |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
OverviewThis PR continues the staged migration of the STF (Stateful Task Framework) from cuda_safe_call to the templated cuda_try<> for CUDA API error handling. This is part 6 of an 11-PR migration series. ChangesThree leaf headers in the graph module were updated to use cuda_try<> and now directly include the header that defines cuda_try (instead of relying on transitive includes):
No public API signatures were changed. Commits / Notes
TestingLocal build tested (ninja -j 12 -C build/cudax-cpp20) for:
CI validation pending. Repository discussion
suggestion: WalkthroughThree CUDA Graph node creation sites switch from the out-parameter ChangesCUDA Graph Node Creation Error Handling
Possibly related PRs
Suggested reviewers
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: fdc337b9-f7f0-421f-9e74-7d7935334e50
📒 Files selected for processing (3)
cudax/include/cuda/experimental/__stf/graph/interfaces/slice.cuhcudax/include/cuda/experimental/__stf/graph/interfaces/void_interface.cuhcudax/include/cuda/experimental/__stf/graph/internal/event_types.cuh
Initialize the out-parameter to nullptr before cuda_try<cudaGraphAddEmptyNode> so GCC -Werror=maybe-uninitialized builds pass.
|
/ok to test 4960c0b |
Each header must directly include the utility that defines cuda_try instead of relying on transitive includes.
|
/ok to test fc48d74 |
This comment has been minimized.
This comment has been minimized.
|
/ok to test fc48d74 |
|
/ok to test 77bd508 |
🥳 CI Workflow Results🟩 Finished in 1h 58m: Pass: 100%/55 | Total: 1d 00h | Max: 1h 04m | Hits: 15%/153894See results here. |
Summary
graph/headers fromcuda_safe_callto templatedcuda_try<>:graph/internal/event_types.cuh—cudaGraphAddEmptyNodegraph/interfaces/void_interface.cuh—cudaGraphAddEmptyNodegraph/interfaces/slice.cuh—cudaGraphAddMemcpyNodecuda_safe_call→cuda_trymigration (PR6 of 11).Test plan
ninja -j 12 -C build/cudax-cpp20 cudax.test.stf.graph.explicit_graph cudax.test.stf.interface.graph_use_device_data