aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2021-05-20 14:17:23 +0100
committerGiorgio Arena <giorgio.arena@arm.com>2021-05-25 09:49:11 +0000
commitbf1dbd85cfccc9ad4a351ae403218b83e3dc87a6 (patch)
treebf3140fdc71b313772d5c214138cb36759bd5b57 /src/core
parent4403ed3ed09491686a0b182fa498344b005ca812 (diff)
downloadComputeLibrary-bf1dbd85cfccc9ad4a351ae403218b83e3dc87a6.tar.gz
Fix retrieving device architecture twice in CLCompileContext
Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Change-Id: I12608eb4d681ea07d9d508226600a11365238a00 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5682 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-by: Manuel Bottini <manuel.bottini@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CL/CLCompileContext.cpp3
1 files changed, 1 insertions, 2 deletions
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]");