cuda::experimental::places::augmented_stream#

struct augmented_stream#

A CUDA stream augmented with its pre-resolved driver identity and home device.

Carries:

  • the stream itself,

  • the stream’s unique ID from the CUDA driver (cuStreamGetId), or k_no_stream_id when unknown,

  • the device index on which the stream resides.

The id and device are looked up at construction so downstream consumers (the stream-reuse logic in stream_task, the (src_id, dst_id)-keyed sync-skip cache in async_resources_handle, etc.) never have to re-pay the driver round-trip and can use the augmented stream as a cache key.

Public Functions

augmented_stream() = default#
inline augmented_stream(
cudaStream_t stream,
unsigned long long id,
int dev_id = -1
)#
inline explicit augmented_stream(cudaStream_t stream)#

Construct from stream only; id is from cuStreamGetId, dev_id is -1 (filled lazily when needed).

Public Members

cudaStream_t stream = nullptr#
unsigned long long id = k_no_stream_id#
int dev_id = -1#