cuda.bindings._v2.driver.stream_batch_mem_op_v2#
- cuda.bindings._v2.driver.stream_batch_mem_op_v2(
- intptr_t stream,
- param_array,
- unsigned int flags,
Batch operations to synchronize the stream via memory operations.
This is a batch version of
cuStreamWaitValue32()andcuStreamWriteValue32(). Batching operations may avoid some performance overhead in both the API call and the device execution versus adding them to the stream in separate API calls. The operations are enqueued in the order they appear in the array. SeeCUstreamBatchMemOpTypefor the full set of supported operations, andcuStreamWaitValue32(),cuStreamWaitValue64(),cuStreamWriteValue32(), andcuStreamWriteValue64()for details of specific operations. See related APIs for details on querying support for specific operations.- Parameters:
stream (intptr_t) – The stream to enqueue the operations in.
param_array (StreamBatchMemOpParams_v1) –
The types and parameters of the individual operations. It must be:
Nonefor NULL.
flags (unsigned int) – Reserved for future expansion; must be 0.
Note
Warning: Improper use of this API may deadlock the application. Synchronization ordering established through this API is not visible to CUDA. CUDA tasks that are (even indirectly) ordered by this API should also have that order expressed with CUDA-visible dependencies such as events. This ensures that the scheduler does not serialize them in an improper order.
See also
cuStreamBatchMemOp_v2