diff options
Diffstat (limited to 'arm_compute/runtime/CL/CLMemoryRegion.h')
-rw-r--r-- | arm_compute/runtime/CL/CLMemoryRegion.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arm_compute/runtime/CL/CLMemoryRegion.h b/arm_compute/runtime/CL/CLMemoryRegion.h index 1fd8fdb79e..365973a9e6 100644 --- a/arm_compute/runtime/CL/CLMemoryRegion.h +++ b/arm_compute/runtime/CL/CLMemoryRegion.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021 Arm Limited. + * Copyright (c) 2018-2021, 2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -85,10 +85,9 @@ public: std::unique_ptr<IMemoryRegion> extract_subregion(size_t offset, size_t size) override; protected: - cl::CommandQueue _queue; - cl::Context _ctx; - void *_mapping; - cl::Buffer _mem; + cl::Context _ctx; + void *_mapping; + cl::Buffer _mem; }; /** OpenCL buffer memory region implementation */ @@ -106,11 +105,12 @@ public: * @param[in] buffer Buffer to be used as a memory region */ CLBufferMemoryRegion(const cl::Buffer &buffer); + virtual ~CLBufferMemoryRegion() override; // Inherited methods overridden : void *ptr() final; void *map(cl::CommandQueue &q, bool blocking) final; - void unmap(cl::CommandQueue &q) final; + void unmap(cl::CommandQueue &q) final; }; /** OpenCL SVM memory region interface */ @@ -156,7 +156,7 @@ public: // Inherited methods overridden : void *map(cl::CommandQueue &q, bool blocking) final; - void unmap(cl::CommandQueue &q) final; + void unmap(cl::CommandQueue &q) final; }; /** OpenCL fine-grain SVM memory region implementation */ @@ -173,7 +173,7 @@ public: // Inherited methods overridden : void *map(cl::CommandQueue &q, bool blocking) final; - void unmap(cl::CommandQueue &q) final; + void unmap(cl::CommandQueue &q) final; }; } // namespace arm_compute #endif /* ARM_COMPUTE_RUNTIME_CL_CL_MEMORY_REGION_H */ |