mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
Fix env-native-cpu-without-avx-512 issue
This commit is contained in:
parent
6619445d7a
commit
ce9fdc3887
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue