File: check_arch.sh

package info (click to toggle)
xsimd 13.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,716 kB
  • sloc: cpp: 36,557; sh: 541; makefile: 184; python: 117
file content (89 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/sh
set -e
CXX=g++
printf "int main() { return 0;}" > sanity_check.cpp
printf "#include <xsimd/xsimd.hpp>\nint main() { return 0;}" > xsimd_check.cpp

sed -n '/x86[-]64/,$ p' $0 | \
    while read arch; do \
        if echo $arch | grep -q '#' ; then continue; fi ; \
        echo "# $arch" ; \
        $CXX -w -march=$arch sanity_check.cpp -fsyntax-only ;  \
        $CXX -w -I../include -march=$arch xsimd_check.cpp -fsyntax-only ; \
    done

rm sanity_check.cpp xsimd_check.cpp

exit 0
nocona
core2
nehalem
corei7
westmere
sandybridge
corei7-avx
ivybridge
core-avx-i
haswell
core-avx2
broadwell
skylake
skylake-avx512
cannonlake
icelake-client
rocketlake
icelake-server
cascadelake
tigerlake
cooperlake
sapphirerapids
emeraldrapids
alderlake
raptorlake
meteorlake
graniterapids
graniterapids-d
bonnell
atom
silvermont
slm
goldmont
goldmont-plus
tremont
gracemont
sierraforest
grandridge
knl
knm
x86-64
x86-64-v2
x86-64-v3
x86-64-v4
eden-x2
nano
nano-1000
nano-2000
nano-3000
nano-x2
eden-x4
nano-x4
lujiazui
k8
k8-sse3
opteron
opteron-sse3
athlon64
athlon64-sse3
athlon-fx
amdfam10
barcelona
bdver1
bdver2
bdver3
bdver4
znver1
znver2
znver3
znver4
btver1
btver2