cuda::experimental::stf::get_stream_id#

inline unsigned long long cuda::experimental::stf::get_stream_id(
cudaStream_t stream
)#

Returns the unique stream ID from the CUDA driver (cuStreamGetId).

Parameters:

stream – A valid CUDA stream, or nullptr.

Returns:

The stream’s unique ID, or k_no_stream_id if stream is nullptr.