Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba5a32d

Browse files
author
Bernhard Kerbl
committed
Improved a streaming comment
1 parent e9054c9 commit ba5a32d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

09_Streams/src/main.cu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ int main()
4747
cudaStreamCreate(&s);
4848
busy<<<1, 1, 0, s>>>();
4949
}
50-
// Destroy all streams (implicitly waits until each has finished)
50+
/*
51+
Destroy all streams. It is fine to do that immediately. Will not
52+
implicitly synchonize, but the GPU will continue running their
53+
jobs until they have all been taken care of
54+
*/
5155
for (cudaStream_t& s : streams)
5256
cudaStreamDestroy(s);
5357
cudaDeviceSynchronize();

0 commit comments

Comments
 (0)