Skip to content

Commit

Permalink
Try switching to clang-18
Browse files Browse the repository at this point in the history
  • Loading branch information
broughjt committed Oct 11, 2024
1 parent 72e0087 commit 685d47b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ clean:
raco pkg remove --force --no-docs egg-herbie-linux && echo "Uninstalled old egg-herbie" || :
raco pkg remove --force --no-docs egg-herbie-windows && echo "Uninstalled old egg-herbie" || :
raco pkg remove --force --no-docs egg-herbie-osx && echo "Uninstalled old egg-herbie" || :
raco pkg remove --force --no-docs avx-herbie fdlimb-herbie vdt-herbie && echo "Uninstalled old avx-, fdlibm-, and vdt-herbie" || :

update:
raco pkg install --skip-installed --no-docs --auto --name herbie src/
Expand Down
1 change: 1 addition & 0 deletions infra/platforms-eval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function run() {
}

# Run configs

run $BENCH_DIR/hamming hamming $NUM_SEEDS
run $BENCH_DIR/mathematics mathematics $NUM_SEEDS
python3 $INFRA_DIR/platforms/cross-plot.py "$OUTDIR/platforms/output"
Expand Down
2 changes: 1 addition & 1 deletion infra/platforms/platforms/avx.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
binary_ops = ['+', '-', '*', '/', 'fmax', 'fmin']
ternary_ops = ['fma', 'fmsub', 'fnmadd', 'fnmsub']

compiler = 'clang'
compiler = 'clang-18'
c_flags = ['-std=gnu11', '-ffp-contract=off', '-O2', '-mavx', '-mfma']
ld_flags = ['-lm']
driver_name = 'main.c'
Expand Down
2 changes: 1 addition & 1 deletion infra/platforms/platforms/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# C lang
target_lang = 'c'
compiler = 'clang'
compiler = 'clang-18'
c_flags = ['-std=gnu11', '-ffp-contract=off', '-O2']
ld_flags = ['-lm']
driver_name = 'main.c'
Expand Down
2 changes: 1 addition & 1 deletion infra/platforms/platforms/fdlibm.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

# C lang
target_lang = 'c'
compiler = 'clang'
compiler = 'clang-18'
c_flags = ['-std=gnu11', '-ffp-contract=off', '-O2']
ld_flags = ['-lm']
driver_name = 'main.c'
Expand Down
2 changes: 1 addition & 1 deletion infra/platforms/platforms/vdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# C lang
target_lang = 'c'
compiler = 'clang++'
compiler = 'clang-18++'
c_flags = ['-O3','-ffp-contract=off']
ld_flags = ['-lm']
driver_name = 'main.cpp'
Expand Down

0 comments on commit 685d47b

Please sign in to comment.