aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/NEON/kernels/assembly
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2018-03-16 09:43:51 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commitbe1f4a7f12e41f4988d4157f35dcb951cf31b72d (patch)
treeb0061600004c2827ba8d6e6e8d1dec31f22cd8b8 /arm_compute/core/NEON/kernels/assembly
parent2539dd24acbd28fc666e3ba8d9d5dc6330d7f03c (diff)
downloadComputeLibrary-be1f4a7f12e41f4988d4157f35dcb951cf31b72d.tar.gz
COMPMID-881: Fixed x86 builds and removed printfs
Change-Id: I52db3e57a7984847ed42e3284b4c040beb4d7b18 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/124849 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/NEON/kernels/assembly')
-rw-r--r--arm_compute/core/NEON/kernels/assembly/newgemm_lib.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/arm_compute/core/NEON/kernels/assembly/newgemm_lib.hpp b/arm_compute/core/NEON/kernels/assembly/newgemm_lib.hpp
index b7cc3d773b..0e232b6bc5 100644
--- a/arm_compute/core/NEON/kernels/assembly/newgemm_lib.hpp
+++ b/arm_compute/core/NEON/kernels/assembly/newgemm_lib.hpp
@@ -58,7 +58,7 @@ inline int stoi( const std::string& str, std::size_t* pos = 0, int base =
#endif
-#ifndef BARE_METAL
+#if ! defined(BARE_METAL) && (defined(__arm__) || defined(__aarch64__))
#include <sys/auxv.h>
/* Get HWCAP bits from asm/hwcap.h */
@@ -203,8 +203,6 @@ private:
_percpu[curcpu].midr = midr;
_percpu[curcpu].model = midr_to_model(midr);
_percpu[curcpu].model_set = true;
-
- printf("CPU %d: %x\n",curcpu,midr);
}
midr=0;
@@ -244,7 +242,6 @@ private:
_percpu[curcpu].model = midr_to_model(midr);
_percpu[curcpu].model_set = true;
- printf("CPU %d: %x\n",curcpu,midr);
}
}
}
@@ -254,7 +251,7 @@ private:
int get_max_cpus() {
int max_cpus = 1;
-#ifndef BARE_METAL
+#if ! defined(BARE_METAL) && (defined(__arm__) || defined(__aarch64__))
std::ifstream CPUspresent;
CPUspresent.open("/sys/devices/system/cpu/present", std::ios::in);
bool success = false;
@@ -294,7 +291,7 @@ private:
public:
CPUInfo() {
-#ifndef BARE_METAL
+#if ! defined(BARE_METAL) && (defined(__arm__) || defined(__aarch64__))
unsigned long hwcaps = getauxval(AT_HWCAP);
if (hwcaps & HWCAP_CPUID) {
@@ -383,7 +380,7 @@ public:
}
CPUModel get_cpu_model() const {
-#ifdef BARE_METAL
+#if defined(BARE_METAL) || (!defined(__arm__) && !defined( __aarch64__) )
return get_cpu_model(0);
#else
return get_cpu_model(sched_getcpu());