mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
parent
3104d2f738
commit
f42fca9f49
@ -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…
Reference in New Issue
Block a user