Commit 1d81091 1 parent 4b6752c commit 1d81091 Copy full SHA for 1d81091
File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 29
29
30
30
#include < iostream>
31
31
32
+ #if defined(__x86_64__) || defined(__i386__)
32
33
#include " cpuinfo_x86.h"
34
+ #elif defined(__arm__)
35
+ #include " cpuinfo_arm.h"
36
+ #elif defined(__aarch64__)
37
+ #include " cpuinfo_aarch64.h"
38
+ #endif
33
39
34
40
#include " Statistics/Similarity.h"
35
41
#include " Statistics/Consistency.h"
@@ -373,8 +379,13 @@ namespace statistics {
373
379
shWindow = 0 ;
374
380
375
381
// Detect the best supported compute platform on the local machine.
382
+ #if defined(CPU_FEATURES_ARCH_X86)
376
383
static const X86Info info = GetX86Info ();
377
384
static const X86Features features = info.features ;
385
+ #elif defined(CPU_FEATURES_ARCH_ARM)
386
+ static const ArmInfo info = GetArmInfo ();
387
+ static const ArmFeatures features = info.features ;
388
+ #endif
378
389
379
390
// On x86, test whether SSE2 or AVX2 are supported.
380
391
#ifdef CPU_FEATURES_ARCH_X86_32
You can’t perform that action at this time.
0 commit comments