Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9054c9 commit ba5a32dCopy full SHA for ba5a32d
09_Streams/src/main.cu
@@ -47,7 +47,11 @@ int main()
47
cudaStreamCreate(&s);
48
busy<<<1, 1, 0, s>>>();
49
}
50
- // Destroy all streams (implicitly waits until each has finished)
+ /*
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
+ */
55
for (cudaStream_t& s : streams)
56
cudaStreamDestroy(s);
57
cudaDeviceSynchronize();
0 commit comments