aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2019-11-13 10:44:09 +0000
committerMichele Di Giorgio <michele.digiorgio@arm.com>2019-11-14 11:39:29 +0000
commitee8cf3287265436d0d12effa36e876dc251eee8c (patch)
treeb3b16e731e4eb597b27acd14bec41389fc6dc76a /src
parent7a669a87ef04ecb4c9b51ea4a10d9a16aebf3227 (diff)
downloadComputeLibrary-ee8cf3287265436d0d12effa36e876dc251eee8c.tar.gz
COMPMID-2905: Fixed benchmark graph segfault.
Reworked the graph api opencl backend to use the legacy api in initialize_backend(). Change-Id: Ie27a3484a3851e742fce9bf5bfef7b6ef928d0a0 Signed-off-by: Pablo Tello <pablo.tello@arm.com> Reviewed-on: https://review.mlplatform.org/c/2276 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/graph/backends/CL/CLDeviceBackend.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/graph/backends/CL/CLDeviceBackend.cpp b/src/graph/backends/CL/CLDeviceBackend.cpp
index 58c666c3cc..de318476ab 100644
--- a/src/graph/backends/CL/CLDeviceBackend.cpp
+++ b/src/graph/backends/CL/CLDeviceBackend.cpp
@@ -65,7 +65,7 @@ bool file_exists(const std::string &filename)
static detail::BackendRegistrar<CLDeviceBackend> CLDeviceBackend_registrar(Target::CL);
CLDeviceBackend::CLDeviceBackend()
- : _context_count(0), _tuner(), _allocator(nullptr), _tuner_file(), _legacy_ctx()
+ : _context_count(0), _tuner(), _allocator(nullptr), _tuner_file()
{
}
@@ -92,9 +92,8 @@ void CLDeviceBackend::initialize_backend()
{
// Setup Scheduler
CLScheduler::get().default_init(&_tuner);
- _legacy_ctx = support::cpp14::make_unique<CLCoreRuntimeContext>(nullptr, CLScheduler::get().context(), CLScheduler::get().queue());
// Create allocator with new context
- _allocator = support::cpp14::make_unique<CLBufferAllocator>(_legacy_ctx.get());
+ _allocator = support::cpp14::make_unique<CLBufferAllocator>(nullptr /* legacy path for CLCoreRuntimeContext */);
}
void CLDeviceBackend::release_backend_context(GraphContext &ctx)