Uh oh!
There was an error while loading. Please reload this page.
cuda.core: add LaunchConfig.programmatic_stream_serialization for programmatic dependent launch - #2456
Conversation
…alization Allow users to set CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION through LaunchConfig, matching the is_cooperative attribute pattern (NVIDIA#1334).
Add an end-to-end Hopper+ test that launches primary and secondary kernels on the same stream with programmatic_stream_serialization, and asserts overlap only when the PDL attribute is enabled (NVIDIA#1334).
Drop unused secondary sync/sleep from the overlap test, clarify the primary clock window comment, and print a short success line for CI.
lijinf2
commented
Jul 30, 2026
/ok to test d3b3b25 |
|
Uh oh!
There was an error while loading. Please reload this page.
| attr.value.cooperative = 1 | ||
| attrs.append(attr) | ||
| if config.programmatic_stream_serialization: |
There was a problem hiding this comment.
Non blocking Q: I see from the comment to this function "once all modules are cythonized, this function can be dropped in favor of the cdef method above". Are all modules cythonized?
There was a problem hiding this comment.
I have no answer. this cpdef function might still be needed for tests / non-Cython callers.
There was a problem hiding this comment.
Just checked codebase. This function is used in tests/test_launcher.py::test_to_native_launch_config_no_cluster, where there is a python caller "from cuda.core._launch_config import _to_native_launch_config"
Uh oh!
There was an error while loading. Please reload this page.
lijinf2
commented
Aug 3, 2026
/ok to test 717fe7f |
Uh oh!
There was an error while loading. Please reload this page.
Description
Part of #1334
Expose
LaunchConfig.programmatic_stream_serializationto setCU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION, and add mapping plusHopper+ primary/secondary overlap tests.
Reference: https://docs.nvidia.com/cuda/cuda-programming-guide/04-special-topics/programmatic-dependent-launch.html
Release notes / Graph showcase will be in next PR.
Checklist