cuda::experimental::stf::unregister_stream#
- inline void cuda::experimental::stf::unregister_stream(
- async_resources_handle &async_resources,
- decorated_stream &dstream,
Unregisters a decorated CUDA stream from asynchronous resources.
Performs cleanup operations to release resources associated with a previously registered stream. This includes:
Releasing the unique ID back to the resource manager
Invalidating the decorated stream’s internal ID
Note
Should be paired with register_stream() for proper resource management
- Parameters:
async_resources – [inout] Handle to asynchronous resources manager
dstream – [inout] Decorated stream to unregister. Its
id
will be set to -1.
- Pre:
dstream.id
must be valid (≥ 0) before calling this function- Post:
dstream.id == -1
and associated resources are released