diff options
Diffstat (limited to 'src/runtime/CL/functions/CLFastCorners.cpp')
-rw-r--r-- | src/runtime/CL/functions/CLFastCorners.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/CL/functions/CLFastCorners.cpp b/src/runtime/CL/functions/CLFastCorners.cpp index d6cda91cea..fe2a18cd30 100644 --- a/src/runtime/CL/functions/CLFastCorners.cpp +++ b/src/runtime/CL/functions/CLFastCorners.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 ARM Limited. + * Copyright (c) 2016-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -97,7 +97,7 @@ void CLFastCorners::run() { cl::CommandQueue q = CLScheduler::get().queue(); - _memory_group.acquire(); + MemoryGroupResourceScope scope_mg(_memory_group); if(_non_max) { @@ -129,6 +129,4 @@ void CLFastCorners::run() } q.flush(); - - _memory_group.release(); } |