aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-03-27 17:15:49 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commitfbb805450c1509cee2d9270bc8e04ce9165ac4bc (patch)
treea97ace1862360e232268b5071b79d6cdaf887455 /utils
parent3672df36e7b61f280d66b6cbb11c2b4254fbbc8c (diff)
downloadComputeLibrary-fbb805450c1509cee2d9270bc8e04ce9165ac4bc.tar.gz
COMPMID-1028: Add GLES backend
Change-Id: If3172cdb6528dbc20262836174aedaef52c78bdb Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/126111 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/GraphUtils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/GraphUtils.h b/utils/GraphUtils.h
index 1ae11f6a7b..e70a1a275f 100644
--- a/utils/GraphUtils.h
+++ b/utils/GraphUtils.h
@@ -326,12 +326,16 @@ inline std::unique_ptr<graph::ITensorAccessor> get_output_accessor(const std::st
*/
inline graph2::Target set_target_hint2(int target)
{
- ARM_COMPUTE_ERROR_ON_MSG(target > 2, "Invalid target. Target must be 0 (NEON) or 1 (OpenCL)");
+ ARM_COMPUTE_ERROR_ON_MSG(target > 3, "Invalid target. Target must be 0 (NEON), 1 (OpenCL), 2 (OpenCL + Tuner), 3 (GLES)");
if((target == 1 || target == 2) && arm_compute::opencl_is_available())
{
// If type of target is OpenCL, check if OpenCL is available and initialize the scheduler
return graph2::Target::CL;
}
+ else if(target == 3)
+ {
+ return graph2::Target::GC;
+ }
else
{
return graph2::Target::NEON;