Skip to content

Commit

Permalink
Update config-fermat.sh
Browse files Browse the repository at this point in the history
if statement for F15 / 2K FFT
  • Loading branch information
xanthe-cat authored Apr 23, 2024
1 parent 8002627 commit 047bda2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config-fermat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ MLUCAS=./Mlucas
# Number of iterations (use 100, 1000, or 10000 to match pre-computed values)
ITERS=100

# Minimum Fermat number (14 or greater)
MIN=14
# Minimum Fermat number (15 or greater)
MIN=15

# Maximum Fermat number (33 or less)
MAX=29
Expand Down Expand Up @@ -64,8 +64,10 @@ for ((n = 0; n < 16; ++n)); do
done
done
# First we test the very fiddly F15 and then loop over F16 up to maximum
printf '\n\tTesting F15 (2^32768 + 1),\tFFT length: 2K\n\n'
time $MLUCAS -f 15 -fft 2 -radset 8,8,16 -shift 0 -iters $ITERS "${args[@]}" 2>&1 | tee -a config-fermat.log | grep -i 'error\|warn\|assert\|writing\|pmax_rec\|fft radices'
if [[ $MIN -eq 15 ]]; then
printf '\n\tTesting F15 (2^32768 + 1),\tFFT length: 2K\n\n'
time $MLUCAS -f 15 -fft 2 -radset 8,8,16 -shift 0 -iters $ITERS "${args[@]}" 2>&1 | tee -a config-fermat.log | grep -i 'error\|warn\|assert\|writing\|pmax_rec\|fft radices'
fi
for fft in "${!FFTS[@]}"; do
f=${FFTS[fft]}
if [[ -n $MIN && $f -lt $MIN ]]; then
Expand Down

0 comments on commit 047bda2

Please sign in to comment.