cuda.bindings._v2.driver.stream_update_capture_dependencies_v2#
- cuda.bindings._v2.driver.stream_update_capture_dependencies_v2(
- intptr_t h_stream,
- dependencies,
- dependency_data,
- size_t num_dependencies,
- unsigned int flags,
Update the set of dependencies in a capturing stream.
Modifies the dependency set of a capturing stream. The dependency set is the set of nodes that the next captured node in the stream will depend on along with the edge data for those dependencies. Valid flags are
CU_STREAM_ADD_CAPTURE_DEPENDENCIESandCU_STREAM_SET_CAPTURE_DEPENDENCIES. These control whether the set passed to the API is added to the existing set or replaces it. A flags value of 0 defaults toCU_STREAM_ADD_CAPTURE_DEPENDENCIES. Nodes that are removed from the dependency set via this API do not result inCUDA_ERROR_STREAM_CAPTURE_UNJOINEDif they are unreachable from the stream atcuStreamEndCapture. ReturnsCUDA_ERROR_ILLEGAL_STATEif the stream is not capturing.- Parameters:
h_stream (intptr_t) – The stream to update.
dependencies (object) –
The set of dependencies to add. It can be:
dependency_data (intptr_t) – Optional array of data associated with each dependency.
num_dependencies (size_t) – The size of the dependencies array.
flags (unsigned int) – See above.
See also
cuStreamUpdateCaptureDependencies_v2