aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CL
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-03-23 15:13:15 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commitc0d1c86b1bb1b4e129c292549845e00dfd8abfee (patch)
treedfb24aa860615f45a430a5c921df7a1a20eb52d8 /arm_compute/core/CL
parent7fad9b1d00f3ee1488ba4038d1371f6ea219f8b7 (diff)
downloadComputeLibrary-c0d1c86b1bb1b4e129c292549845e00dfd8abfee.tar.gz
COMPMID-734: CLTuner rework
Change-Id: I8f20d6ea8a09869d71003e7b08e0d33775282f6c Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125802 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/CL')
-rw-r--r--arm_compute/core/CL/CLTypes.h13
-rw-r--r--arm_compute/core/CL/ICLKernel.h9
-rw-r--r--arm_compute/core/CL/kernels/CLDirectConvolutionLayerKernel.h4
3 files changed, 23 insertions, 3 deletions
diff --git a/arm_compute/core/CL/CLTypes.h b/arm_compute/core/CL/CLTypes.h
index a9d5fdd063..14c31fa396 100644
--- a/arm_compute/core/CL/CLTypes.h
+++ b/arm_compute/core/CL/CLTypes.h
@@ -60,5 +60,16 @@ enum class CLVersion
CL20, /* the OpenCL 2.0 and above */
UNKNOWN /* unkown version */
};
-}
+
+/** 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 */
+};
+} // namespace arm_compute
#endif /* __ARM_COMPUTE_CL_TYPES_H__ */
diff --git a/arm_compute/core/CL/ICLKernel.h b/arm_compute/core/CL/ICLKernel.h
index c7d0c2156b..e6700cd61e 100644
--- a/arm_compute/core/CL/ICLKernel.h
+++ b/arm_compute/core/CL/ICLKernel.h
@@ -198,6 +198,15 @@ public:
_lws_hint = lws_hint;
}
+ /** Return the Local-Workgroup-Size hint
+ *
+ * @return Current lws hint
+ */
+ cl::NDRange lws_hint() const
+ {
+ return _lws_hint;
+ }
+
/** Get the configuration ID
*
* @note The configuration ID can be used by the caller to distinguish different calls of the same OpenCL kernel
diff --git a/arm_compute/core/CL/kernels/CLDirectConvolutionLayerKernel.h b/arm_compute/core/CL/kernels/CLDirectConvolutionLayerKernel.h
index d47b7da213..eb1bf58b1b 100644
--- a/arm_compute/core/CL/kernels/CLDirectConvolutionLayerKernel.h
+++ b/arm_compute/core/CL/kernels/CLDirectConvolutionLayerKernel.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -88,7 +88,7 @@ public:
void run(const Window &window, cl::CommandQueue &queue) override;
BorderSize border_size() const override;
-private:
+public:
const ICLTensor *_input;
const ICLTensor *_biases;
const ICLTensor *_weights;