Update googletest to 1.18.0 and SIMDe to 0.8.2.
Googletest 1.18 asks for CMake 3.13 or newer, so configuring the tests no longer warns that CMake compatibility below 3.10 is deprecated. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
e4e666f459
commit
3f10e05176
912 changed files with 224964 additions and 11502 deletions
43
thirdparty/simde/test/check-flags.sh
vendored
43
thirdparty/simde/test/check-flags.sh
vendored
|
|
@ -4,6 +4,8 @@
|
|||
# run the tests if the extension is supported, but skip them if it
|
||||
# isn't. Currently this only works on x86.
|
||||
|
||||
INTEL_TARGET=${INTEL_TARGET:-tgl}
|
||||
|
||||
if [ -z "${SDE_PATH}" ]; then
|
||||
SDE_PATH="/opt/intel/sde"
|
||||
fi
|
||||
|
|
@ -12,11 +14,44 @@ if [ ! -d "${SDE_PATH}" ]; then
|
|||
mkdir -p "${SDE_PATH}"
|
||||
fi
|
||||
|
||||
if [ -e /lib/ld-linux-x86-64.so.2 ]; then
|
||||
LD=/lib/ld-linux-x86-64.so.2
|
||||
else
|
||||
LD=/lib64/ld-linux-x86-64.so.2
|
||||
fi
|
||||
|
||||
NATIVE_SUPPORT=1
|
||||
for FLAG in $CFLAGS; do
|
||||
echo $FLAG | grep -qP '^\-m[0-9a-zA-Z\.]+$' || continue
|
||||
if echo "$FLAG" | grep -q '\-march=x86-64$' ; then
|
||||
if grep -qP " x86_64 \(supported" <(${LD} --help) ; then
|
||||
continue
|
||||
else
|
||||
NATIVE_SUPPORT=0
|
||||
continue
|
||||
fi
|
||||
elif echo "$FLAG" | grep -q '\-march=x86-64-v[234]$'; then
|
||||
if grep -qP " ${FLAG:7} \(supported" <(${LD} --help) ; then
|
||||
continue
|
||||
else
|
||||
NATIVE_SUPPORT=0
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
echo "$FLAG" | grep -qP '^\-m[0-9a-zA-Z\.-]+$' || continue
|
||||
case "${FLAG:2}" in
|
||||
# sse3 doesn't show up in /proc/cpuinfo (?!?!)
|
||||
"avx512bf16")
|
||||
grep -qP " avx512_bf16 " /proc/cpuinfo || NATIVE_SUPPORT=0
|
||||
;;
|
||||
"avx512bitalg")
|
||||
grep -qP " avx512_bitalg " /proc/cpuinfo || NATIVE_SUPPORT=0
|
||||
;;
|
||||
"avx512vbmi2")
|
||||
grep -qP " avx512_vbmi2 " /proc/cpuinfo || NATIVE_SUPPORT=0
|
||||
;;
|
||||
"avx512vnni")
|
||||
grep -qP " avx512_vnni " /proc/cpuinfo || NATIVE_SUPPORT=0
|
||||
;;
|
||||
"sse3")
|
||||
;;
|
||||
*)
|
||||
|
|
@ -37,11 +72,11 @@ case "$COMMAND" in
|
|||
;;
|
||||
esac
|
||||
|
||||
if [ $COMMAND = 'query' ]; then
|
||||
if [ "$COMMAND" = "query" ]; then
|
||||
test $NATIVE_SUPPORT -eq 1
|
||||
exit $?
|
||||
elif [ $NATIVE_SUPPORT -eq 1 ]; then
|
||||
$@
|
||||
"$@"
|
||||
exit $?
|
||||
elif [ "$COMMAND" = "sde" ]; then
|
||||
(
|
||||
|
|
@ -50,7 +85,7 @@ elif [ "$COMMAND" = "sde" ]; then
|
|||
"$(dirname "$0")"/download-sde.sh "${SDE_PATH}"
|
||||
fi
|
||||
) 9>/tmp/sde-download.lock
|
||||
"${SDE_PATH}/sde64" -tgl -- $@
|
||||
"${SDE_PATH}/sde64" "-${INTEL_TARGET}" -- "$@"
|
||||
exit $?
|
||||
else
|
||||
echo "Flags not supported, skipping"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue