aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/CPUUtils.cpp
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2018-10-09 10:51:51 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:55:21 +0000
commitdf3b5bb87296fdcde8ef88153f6365d693e80295 (patch)
treed58a99b90fb1f429d9dbe55017978047e84d42df /src/runtime/CPUUtils.cpp
parente95c206df8f8eac0b81f42526e5828b557172c16 (diff)
downloadComputeLibrary-df3b5bb87296fdcde8ef88153f6365d693e80295.tar.gz
COMPMID-1630: Fixed broken DOTPROD detection.
Change-Id: Ic857b938130c3d8713c9b414249cfabdcf846c2b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/152451 Tested-by: bsgcomp <bsgcomp@arm.com> Reviewed-by: Vidhya Sudhan Loganathan <vidhyasudhan.loganathan@arm.com>
Diffstat (limited to 'src/runtime/CPUUtils.cpp')
-rw-r--r--src/runtime/CPUUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/CPUUtils.cpp b/src/runtime/CPUUtils.cpp
index 0e1f3353a6..f8feb33838 100644
--- a/src/runtime/CPUUtils.cpp
+++ b/src/runtime/CPUUtils.cpp
@@ -320,10 +320,12 @@ void get_cpu_configuration(CPUInfo &cpuinfo)
hwcaps_fp16_support = true;
}
+#if defined(__aarch64__)
if((hwcaps & HWCAP_ASIMDDP) != 0)
{
hwcaps_dot_support = true;
}
+#endif /* defined(__aarch64__) */
const unsigned int max_cpus = get_max_cpus();
cpuinfo.set_cpu_num(max_cpus);