From bf1dbd85cfccc9ad4a351ae403218b83e3dc87a6 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Thu, 20 May 2021 14:17:23 +0100 Subject: Fix retrieving device architecture twice in CLCompileContext Signed-off-by: Giorgio Arena Change-Id: I12608eb4d681ea07d9d508226600a11365238a00 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5682 Reviewed-by: Georgios Pinitas Reviewed-by: Manuel Bottini Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- src/core/CL/CLCompileContext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/CL/CLCompileContext.cpp b/src/core/CL/CLCompileContext.cpp index bf3a866e4b..3f2975dc15 100644 --- a/src/core/CL/CLCompileContext.cpp +++ b/src/core/CL/CLCompileContext.cpp @@ -265,8 +265,7 @@ std::string CLCompileContext::generate_build_options(const StringSet &build_opti ARM_COMPUTE_ERROR("Non uniform workgroup size is not supported!!"); } - const GPUTarget arch = get_arch_from_target(_device.target()); - if(arch != GPUTarget::UNKNOWN && arch != GPUTarget::MIDGARD) + if(gpu_arch != GPUTarget::UNKNOWN && gpu_arch != GPUTarget::MIDGARD) { const std::string device_vers = _device.device_version(); const std::regex ddk_regex("r([0-9]*)p[0-9]"); -- cgit v1.2.1