diff options
| author | PSuchita <[email protected]> | 2019-03-15 16:26:28 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-03-15 16:26:28 -0500 |
| commit | 981c79b0f3e1c637755bfa8dd0b2dbac1d44a865 (patch) | |
| tree | 687fc1fdb1e04ff471f736450db056607f0744d0 /libcuda | |
| parent | f911bdf3b5bfe793ad04df5a62e425d3ed5508b5 (diff) | |
Added comment
Adding comment to describe the issue resolved by the previous commit related to cudaStreamDestroy.
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index 3ff3212..920be46 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -1569,6 +1569,7 @@ __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. synchronize(); g_stream_manager->destroy_stream(stream); #endif |
