cuda::experimental::places::is_stream_capturing#
- inline bool cuda::experimental::places::is_stream_capturing(
- cudaStream_t stream
Is
streamcurrently participating in a CUDA graph capture?Returns
falsefornullptr(the legacy default stream is never capturing).cudaStreamIsCapturingis itself capture-safe, so this can be called from contexts where most other driver queries (cuStreamGetId,cudaStreamGetDevice, …) would be rejected withcudaErrorStreamCaptureUnsupportedand would invalidate the in-flight capture.