diff options
author | SiCong Li <sicong.li@arm.com> | 2023-08-11 17:58:56 +0100 |
---|---|---|
committer | SiCong Li <sicong.li@arm.com> | 2023-08-15 09:07:32 +0000 |
commit | 7d91c615b594d5e9abb1753b3f572f64b0581a48 (patch) | |
tree | a4e753c3b35732627860baf9fb59dff9f5dbaee3 /src/runtime/OMP | |
parent | e32acd6e357631ef08f7f9df74efebbeb066c271 (diff) | |
download | ComputeLibrary-7d91c615b594d5e9abb1753b3f572f64b0581a48.tar.gz |
Fix out-of-scope CLBufferMemoryRegion's buffer still in queue issue
When a CLBufferMemoryRegion is freed, it also frees its cl::Buffer
object. At this point we need to flush the queue to ensure all prior
commands that may use this buffer are completed before the buffer's
deallocation.
Previously a CommandQueue object is owned as a member inside
CLBufferMemoryRegion. Whenever CLBufferMemoryRegion is freed it causes
the queue to be released, which implicitly flushes the queue.
Now we need to explicitly flush the queue, without the excessive
releasing of the queue
Resolves COMPMID-6492
Signed-off-by: SiCong Li <sicong.li@arm.com>
Change-Id: I799507bcff8526d1381cde53d7c6298684c6d3ee
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10126
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/OMP')
0 files changed, 0 insertions, 0 deletions