-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly verify dependency between architectures (like sse3 implies…
… sse2) Also add CI to make sure the assumption we make are correct on all architectures supported by GCC. Fix #1070
- Loading branch information
1 parent
4cd58ef
commit 6d6067a
Showing
25 changed files
with
207 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Arch consistency check | ||
on: [push, pull_request] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout xsimd | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: sudo apt install g++ | ||
- name: Check architecture consistency | ||
run: cd test && sh ./check_arch.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |