Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir S. FONOV <vladimir.fonov@gmail.com>2016-12-14 01:30:54 +0300
committerVladimir S. FONOV <vladimir.fonov@gmail.com>2016-12-14 01:30:54 +0300
commitdea203df353c6fe75f33b24cca7fd320190a3731 (patch)
tree5674087b4f98e85f79ebd1e069939bcc996a7441
parent426e2989de5ef3e759b1e10efe94bd04c170efda (diff)
Fixed compilation on Raspberry PI without NEON
-rw-r--r--lib/TH/generic/simd/simd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/TH/generic/simd/simd.h b/lib/TH/generic/simd/simd.h
index d070450..b059258 100644
--- a/lib/TH/generic/simd/simd.h
+++ b/lib/TH/generic/simd/simd.h
@@ -57,6 +57,14 @@ static inline uint32_t detectHostSIMDExtensions()
#else // x86
+#if defined(__arm__) //ARM without NEON
+
+static inline uint32_t detectHostSIMDExtensions()
+{
+ return SIMDExtension_DEFAULT;
+}
+
+#else
static inline void cpuid(uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx)
{
#ifndef _MSC_VER
@@ -99,5 +107,6 @@ static inline uint32_t detectHostSIMDExtensions()
}
#endif // end x86 SIMD extension detection code
+#endif // end __arm__
#endif