Skip to content

Commit

Permalink
Merge pull request #2032 from albinahlback/zen4_backup
Browse files Browse the repository at this point in the history
Zen4 backup
  • Loading branch information
albinahlback authored Jul 9, 2024
2 parents 4496945 + a63191e commit da447e6
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Please report at <https://github.com/flintlib/flint/issues/>])
param_path="x86_64/zen3"
;;
zen4)
gcc_cflags_arch="-march=znver4"
gcc_cflags_arch="-march=znver4 -march=znver3"
param_path="x86_64/zen3"
have_avx512="yes"
;;
Expand Down Expand Up @@ -1225,11 +1225,22 @@ then
for opt in $gcc_cflags_optlist;
do
eval tmp=\"\$gcc_cflags_${opt}\" # " Just to fix highlighting
# found_single is for checking if we have found a flag that should be
# alone in its type. Example: On Skylake, -march=skylake should not be
# accompanied by -march=broadwell; instead, if we find that
# -march=skylake is accepted, we do not want to check -march=broadwell.
found_single="no"
for flag in $tmp;
do
if test opt = "arch";
if test "$found_single" = "yes";
then
AX_CHECK_COMPILE_FLAG([$flag],[save_CFLAGS="$flag $save_CFLAGS"],
found_single="no"
break
elif test "$opt" = "arch";
then
AX_CHECK_COMPILE_FLAG([$flag],
[save_CFLAGS="$flag $save_CFLAGS"
found_single="yes"],
[unset flint_cv_have_fft_small_x86_i
unset flint_cv_have_fft_small_arm_i])
else
Expand Down

0 comments on commit da447e6

Please sign in to comment.