Skip to content

Commit

Permalink
avx flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Sep 25, 2024
1 parent dbdc26b commit 0a4fbc9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ pgo-data.profdata
COMMIT_HASH

# Benchmark results
**/.csv
**/.csv
**/*.csv
12 changes: 8 additions & 4 deletions eval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ else
GPU_EXISTS=false
fi

# Set the compilation flags.
# if [ "$GPU_EXISTS" = false ]; then
# export RUSTFLAGS='-C target-cpu=native'
# fi
# Check for AVX-512 support
if lscpu | grep -q avx512; then
# If AVX-512 is supported, add the specific features to RUSTFLAGS
export RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512ifma,+avx512vl"
else
# If AVX-512 is not supported, just set target-cpu=native
export RUSTFLAGS="-C target-cpu=native"
fi

# Set the logging level.
export RUST_LOG=info
Expand Down

0 comments on commit 0a4fbc9

Please sign in to comment.