-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from ska-sa/arm-sve-memcpy-nt
Add non-temporal memcpy support for ARM
- Loading branch information
Showing
23 changed files
with
343 additions
and
174 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
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,58 @@ | ||
#!/bin/bash | ||
|
||
# Produce flags to meson to force certain features. This ensures that the CI | ||
# builds are actually testing all the optional features, and not failing to | ||
# include them because the detection code is broken. | ||
|
||
flags=( | ||
"--native-file=ci.ini" | ||
"-Dwerror=true" | ||
"-Dtools=enabled" | ||
"-Dpcap=enabled" | ||
"-Dunit_test=enabled" | ||
) | ||
|
||
if [ "$(uname)" = "Linux" ]; then | ||
flags+=( | ||
"-Dibv=enabled" | ||
"-Dmlx5dv=enabled" | ||
"-Dibv_hw_rate_limit=enabled" | ||
"-Dpcap=enabled" | ||
"-Dcap=enabled" | ||
"-Drecvmmsg=enabled" | ||
"-Dsendmmsg=enabled" | ||
"-Dgso=enabled" | ||
"-Dgro=enabled" | ||
"-Dpthread_setaffinity_np=enabled" | ||
"-Dposix_semaphores=enabled" | ||
"-Deventfd=enabled" | ||
) | ||
fi | ||
|
||
case "$(arch)" in | ||
x86_64) | ||
flags+=( | ||
"-Dsse2_stream=enabled" | ||
"-Davx_stream=enabled" | ||
"-Davx512_stream=enabled" | ||
) | ||
;; | ||
aarch64) | ||
# Note: Apple uses "arm64" while Linux uses "aarch64". Apple doesn't | ||
# seem to support SVE in any hardware (up to M4) and our detection | ||
# code is Linux-specific, so we don't try to force this for MacOS | ||
# builds. | ||
flags+=("-Dsve_stream=enabled") | ||
;; | ||
esac | ||
|
||
echo "Setting flags ${flags[*]}" 1>&2 | ||
|
||
if [ "$1" = "--python" ]; then | ||
for arg in "${flags[@]}"; do | ||
echo -n "--config-settings=setup-args=$arg " | ||
done | ||
echo | ||
else | ||
echo "${flags[*]}" | ||
fi |
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
Oops, something went wrong.