Skip to content

novaphy.set_current_cuda_stream

Install an opaque CUDA stream pointer as NovaPhy's current thread-local stream. Pass 0 to use the legacy default stream.

novaphy.set_current_cuda_stream(stream_ptr)

In a CPU-only build, 0 is accepted but a nonzero stream pointer raises RuntimeError. The companion current/clear/synchronize/capturing helpers return 0, are no-ops, or return False as appropriate when CUDA is absent.

See Also