From 99d40951df87790fb884ce1c42d5e2a7a0009ee0 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 23 Apr 2018 16:26:46 +0100 Subject: COMPMID-1023: Import memory for OpenCL Change-Id: I201bc00a1261814737e6b6878ecfe9904bae0cc1 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128212 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/runtime/CL/CLBufferAllocator.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arm_compute/runtime/CL/CLBufferAllocator.h') diff --git a/arm_compute/runtime/CL/CLBufferAllocator.h b/arm_compute/runtime/CL/CLBufferAllocator.h index 05b0363dc3..19a3e627ca 100644 --- a/arm_compute/runtime/CL/CLBufferAllocator.h +++ b/arm_compute/runtime/CL/CLBufferAllocator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -34,7 +34,7 @@ namespace arm_compute { /** Default OpenCL cl buffer allocator implementation */ -class CLBufferAllocator : public IAllocator +class CLBufferAllocator final : public IAllocator { public: /** Default constructor */ @@ -43,6 +43,7 @@ public: // Inherited methods overridden: void *allocate(size_t size, size_t alignment) override; void free(void *ptr) override; + std::unique_ptr make_region(size_t size, size_t alignment) override; private: cl::Context _context; -- cgit v1.2.1