summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorPSuchita <[email protected]>2019-03-15 17:13:16 -0500
committerGitHub <[email protected]>2019-03-15 17:13:16 -0500
commitd575f9464df6358d1be60953e984bcfa9257d1a3 (patch)
tree2907326278701749f1b79fbed9998d8d0b6bf958 /libcuda
parent981c79b0f3e1c637755bfa8dd0b2dbac1d44a865 (diff)
Updated comment.
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/cuda_runtime_api.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc
index 920be46..cf16d9b 100644
--- a/libcuda/cuda_runtime_api.cc
+++ b/libcuda/cuda_runtime_api.cc
@@ -1569,7 +1569,8 @@ __host__ cudaError_t CUDARTAPI cudaStreamDestroy(cudaStream_t stream)
announce_call(__my_func__);
}
#if (CUDART_VERSION >= 3000)
- //synchronization required to avoid the stream_manager from spinning forever to destroy non-empty streams without making any forward progress.
+ //synchronization required for application using external libraries without explicit synchronization in the code to
+ //avoid the stream_manager from spinning forever to destroy non-empty streams without making any forward progress.
synchronize();
g_stream_manager->destroy_stream(stream);
#endif