Hi,
I’d like to obtain the underlying cudaStream_t pointer from torch.cuda.Stream().cuda_stream in python, then pass such obtained pointer into my cpp code which does not depend on torch. I’d like to use such pointer to call cudaStreamSynchronize(ptr).
Is this possible and safe to use like this? just reinterpret_cast<cudaStream_t>(torch.cuda.Stream().cuda_stream).