From e86a09fe4c5aa9037787e13ee55cba2b049d5ea5 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Thu, 11 Jan 2018 15:44:48 +0000 Subject: COMPMID-337: Adding OpenCL SVM support. Change-Id: I250d6a1daeccf91d97b6da65aec53b02cf6046a7 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/116140 Tested-by: Jenkins Reviewed-by: Anthony Barbier Reviewed-by: Georgios Pinitas --- arm_compute/runtime/CL/CLTensorAllocator.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'arm_compute/runtime/CL/CLTensorAllocator.h') diff --git a/arm_compute/runtime/CL/CLTensorAllocator.h b/arm_compute/runtime/CL/CLTensorAllocator.h index 7515074afd..6929d551fb 100644 --- a/arm_compute/runtime/CL/CLTensorAllocator.h +++ b/arm_compute/runtime/CL/CLTensorAllocator.h @@ -27,7 +27,7 @@ #include "arm_compute/runtime/ITensorAllocator.h" #include "arm_compute/core/CL/OpenCL.h" - +#include "arm_compute/runtime/CL/SVMMemory.h" #include namespace arm_compute @@ -68,6 +68,9 @@ public: * @return pointer to the CL data. */ const cl::Buffer &cl_data() const; + /** SVM memory */ + void *svm_ptr(); + /** Enqueue a map operation of the allocated buffer on the given queue. * * @param[in,out] q The CL command queue to use for the mapping operation. @@ -121,6 +124,7 @@ private: cl::Buffer _buffer; /**< OpenCL buffer containing the tensor data. */ uint8_t *_mapping; /**< Pointer to the CPU mapping of the OpenCL buffer. */ CLTensor *_owner; /**< Owner of the allocator */ + SVMMemory _svm_memory; /**< Svm memory */ }; } #endif /* __ARM_COMPUTE_CLTENSORALLOCATOR_H__ */ -- cgit v1.2.1