When we create a stream, we need to provide a flag, which can either be cudaStreamDefault or cudaStreamNonBlocking. According to the NVIDIA guide, the difference is on whether the new stream will synchronize with stream 0 or not.
We need to check what to use, and whether it makes any difference.
When we create a stream, we need to provide a flag, which can either be
cudaStreamDefault
orcudaStreamNonBlocking
. According to the NVIDIA guide, the difference is on whether the new stream will synchronize with stream 0 or not.We need to check what to use, and whether it makes any difference.