From a50f19346c5b79e2743f882ce0c691c07076f207 Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Mon, 8 Mar 2021 17:27:05 +0000 Subject: Updated cpu detection * Added the case in the cpu detection code for Klein cores * Added has_sve() and set_sve() methods in CpuInfo * Detection code checks for presence of SVE via HWCAP_SVE * Updated the heuristic in sve kernels to check for the absence of Klein * Resolves: COMPMID-4085 Change-Id: I0b8c72ff19dc5a3a81628d121a1afa836e724b4f Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5257 Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- src/core/CPP/CPPTypes.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/core/CPP') diff --git a/src/core/CPP/CPPTypes.cpp b/src/core/CPP/CPPTypes.cpp index 139e106ca6..0850df29fd 100644 --- a/src/core/CPP/CPPTypes.cpp +++ b/src/core/CPP/CPPTypes.cpp @@ -42,6 +42,11 @@ void CPUInfo::set_dotprod(const bool dotprod) _dotprod = dotprod; } +void CPUInfo::set_sve(const bool sve) +{ + _sve = sve; +} + void CPUInfo::set_cpu_model(unsigned int cpuid, CPUModel model) { ARM_COMPUTE_ERROR_ON(cpuid >= _percpu.size()); @@ -55,6 +60,12 @@ unsigned int CPUInfo::get_cpu_num() const { return _percpu.size(); } + +bool CPUInfo::has_sve() const +{ + return _sve; +} + bool CPUInfo::has_fp16() const { return _fp16; -- cgit v1.2.1