From ce9fdc3887eafa4ce4960011a0917cf75f410e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 25 Sep 2022 12:03:47 +0200 Subject: [PATCH] Fix env-native-cpu-without-avx-512 issue --- scripts/env-native-cpu-without-avx-512 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/env-native-cpu-without-avx-512 b/scripts/env-native-cpu-without-avx-512 index 68f7751..8321fd7 100644 --- a/scripts/env-native-cpu-without-avx-512 +++ b/scripts/env-native-cpu-without-avx-512 @@ -3,7 +3,7 @@ # Compile with target-cpu=native but without AVX512 features, since they # decrease performance. -DISABLE_AVX512=$(rustc --print target-features | grep " avx512" | +DISABLE_AVX512=$(rustc --print target-features | grep " avx512" | grep -v "avx512fp16" | awk '{print $1}' | sed 's/^/-C target-feature=-/' | xargs) export RUSTFLAGS="-C target-cpu=native $DISABLE_AVX512" \ No newline at end of file