Skip to content

Commit

Permalink
Update config-fermat.sh
Browse files Browse the repository at this point in the history
Eliminated 1K FFT, as I am now convinced 2K is the smallest possible workable FFT, which can support F13, F14, and F15. However, 2K requires fiddly tweaking of the Mlucas -f command that makes it a “one-off”.
  • Loading branch information
xanthe-cat authored Apr 23, 2024
1 parent 35edcb2 commit 5b4d7b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions config-fermat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ ARGS=(
# Add desired -cpu or -core settings here, or as following arguments, e.g. bash ../config-fermat.sh -cpu 0:3
)

# First, tiny FFT lengths for F14 to F17 (note 1K and 2K may fail, but 4K should work);
FFTS=([1]=14 [2]=15 [4]=16 [7]=17 [8]=17)
# First, tiny FFT lengths for F16 and F17 (note 4K is the smallest workable length without fiddly radix settings);
FFTS=([4]=16 [7]=17 [8]=17)
# Then, from small up to egregiously large FFTs for F18 to F33.
# The largest FFT reached is 512M, if MAX is set to 33.
# Note that large FFTs require considerable runtime at 10000 iterations.
Expand All @@ -63,7 +63,9 @@ for ((n = 0; n < 16; ++n)); do
fi
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'
for fft in "${!FFTS[@]}"; do
f=${FFTS[fft]}
if [[ -n $MIN && $f -lt $MIN ]]; then
Expand Down

0 comments on commit 5b4d7b6

Please sign in to comment.