cuda: avoid unnecessary cudaStreamSynchronize() call

resolves #11511
pull/11525/head
Alexander Alekhin 7 years ago
parent 3104d2f738
commit f42fca9f49
  1. 5
      modules/core/src/cuda_stream.cpp

@ -594,10 +594,11 @@ namespace
StackAllocator::~StackAllocator()
{
cudaStreamSynchronize(stream_);
if (memStack_ != 0)
{
cudaStreamSynchronize(stream_);
memStack_->pool->returnMemStack(memStack_);
}
}
size_t alignUp(size_t what, size_t alignment)

Loading…
Cancel
Save