Skip to content

Commit

Permalink
broadwell mparam, to be confirmed because server was under heavy load
Browse files Browse the repository at this point in the history
  • Loading branch information
vneiger committed Sep 5, 2024
1 parent 530deb1 commit b690b4e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/mpn_extras/x86_64/broadwell/flint-mparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,28 @@
(at your option) any later version. See <https://www.gnu.org/licenses/>.
*/

/* Tuning for generic CPU. Is probably far from optimal. */
/* parameters found for Intel Xeon E7-4820 v4 */

#ifndef FLINT_MPARAM_H
#define FLINT_MPARAM_H

/* TODO these were taken directly from the generic x86-64 flint-mparam.h ----> */
#define FLINT_FFT_SMALL_MUL_THRESHOLD 1000
#define FLINT_FFT_SMALL_SQR_THRESHOLD 1400

#define FLINT_FFT_MUL_THRESHOLD 32000
#define FLINT_FFT_SQR_THRESHOLD 32000
/* TODO these were taken directly from the generic x86-64 flint-mparam.h ----> */

#define FFT_TAB \
{ {4, 4}, {4, 3}, {3, 2}, {2, 1}, {2, 1} }
{ { 4, 4 }, { 4, 3 }, { 4, 3 }, { 3, 2 }, { 2, 1 } }

#define MULMOD_TAB \
{ 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1 }
{ 4, 4, 4, 4, 4, 3, 3, 4, 4, 3, 3, 3, 3, 2, 2, 2, 2, 2, 1, 2, 2, 1, 1 }

#define FFT_N_NUM 19
#define FFT_MULMOD_2EXPP1_CUTOFF 128
#define FFT_N_NUM 23
#define FFT_MULMOD_2EXPP1_CUTOFF 65536

/* TODO set value */
#define FLINT_MULMOD_SHOUP_THRESHOLD 10
#define FLINT_MULMOD_SHOUP_THRESHOLD 14

#endif

0 comments on commit b690b4e

Please sign in to comment.