From 11d4918b2321d1e590124f44dd68e6cda223dbdc Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 26 Mar 2020 10:31:32 +0000 Subject: COMPMID-3279: Create CLCompiler interface Change-Id: Ic9dd5288d72a690651aa03d474f2bfd6e1ebe8b2 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2957 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Georgios Pinitas Reviewed-by: Gian Marco Iodice --- arm_compute/core/CL/CLTypes.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'arm_compute/core/CL/CLTypes.h') diff --git a/arm_compute/core/CL/CLTypes.h b/arm_compute/core/CL/CLTypes.h index 9f6ff6a82b..3643b178d3 100644 --- a/arm_compute/core/CL/CLTypes.h +++ b/arm_compute/core/CL/CLTypes.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 ARM Limited. + * Copyright (c) 2017-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -27,6 +27,7 @@ #include "arm_compute/core/CL/ICLArray.h" #include "arm_compute/core/GPUTarget.h" +#include #include namespace arm_compute @@ -47,12 +48,14 @@ enum class CLVersion /** OpenCL device options */ struct CLDeviceOptions { - std::string name; /**< Device name */ - std::string extensions; /**< List of supported extensions */ - std::string ddk_version; /**< DDK version */ - GPUTarget gpu_target; /**< GPU target architecture/instance */ - size_t num_cores; /**< Number of cores */ - size_t cache_size; /**< Cache size */ + std::string name{}; /**< Device name */ + std::string device_version{}; /**< Device version string */ + std::set extensions{}; /**< List of supported extensions */ + std::string ddk_version{}; /**< DDK version */ + GPUTarget gpu_target{}; /**< GPU target architecture/instance */ + CLVersion version{}; /**< Device OpenCL version */ + size_t compute_units{}; /**< Number of compute units */ + size_t cache_size{}; /**< Cache size */ }; /** OpenCL quantization data */ -- cgit v1.2.1