-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2239 from vneiger/config_meteorlake
Configure and flint-mparam for some recent Intel processors
- Loading branch information
Showing
9 changed files
with
140 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Copyright (C) 2025 Vincent Neiger | ||
This file is part of FLINT. | ||
FLINT is free software: you can redistribute it and/or modify it under | ||
the terms of the GNU Lesser General Public License (LGPL) as published | ||
by the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. See <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* parameters found for Intel(R) Core(TM) Ultra 7 165H */ | ||
|
||
#ifndef FLINT_MPARAM_H | ||
#define FLINT_MPARAM_H | ||
|
||
/* TODO these were taken directly from skylake flint-mparam.h ----> */ | ||
#define FLINT_FFT_SMALL_MUL_THRESHOLD 1540 | ||
#define FLINT_FFT_SMALL_SQR_THRESHOLD 3080 | ||
|
||
#define FLINT_FFT_MUL_THRESHOLD 32000 | ||
#define FLINT_FFT_SQR_THRESHOLD 32000 | ||
/* <---- these were taken directly from skylake flint-mparam.h */ | ||
|
||
#define FFT_TAB \ | ||
{ { 4, 4 }, { 4, 3 }, { 3, 2 }, { 2, 2 }, { 2, 1 } } | ||
|
||
#define MULMOD_TAB \ | ||
{ 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1 } | ||
|
||
#define FFT_N_NUM 19 | ||
#define FFT_MULMOD_2EXPP1_CUTOFF 128 | ||
|
||
#define FLINT_PREINVERT_LIMB_USE_NATIVE 1 | ||
|
||
#define FLINT_MULMOD_SHOUP_THRESHOLD 0 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Copyright (C) 2025 Vincent Neiger | ||
This file is part of FLINT. | ||
FLINT is free software: you can redistribute it and/or modify it under | ||
the terms of the GNU Lesser General Public License (LGPL) as published | ||
by the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. See <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* parameters found for Intel(R) Core(TM) i5-1335U */ | ||
|
||
#ifndef FLINT_MPARAM_H | ||
#define FLINT_MPARAM_H | ||
|
||
/* TODO these were taken directly from skylake flint-mparam.h ----> */ | ||
#define FLINT_FFT_SMALL_MUL_THRESHOLD 1540 | ||
#define FLINT_FFT_SMALL_SQR_THRESHOLD 3080 | ||
|
||
#define FLINT_FFT_MUL_THRESHOLD 32000 | ||
#define FLINT_FFT_SQR_THRESHOLD 32000 | ||
/* <---- these were taken directly from skylake flint-mparam.h */ | ||
|
||
#define FFT_TAB \ | ||
{ { 4, 4 }, { 4, 3 }, { 3, 2 }, { 2, 2 }, { 1, 1 } } | ||
|
||
#define MULMOD_TAB \ | ||
{ 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 1, 1 } | ||
|
||
#define FFT_N_NUM 19 | ||
#define FFT_MULMOD_2EXPP1_CUTOFF 128 | ||
|
||
#define FLINT_PREINVERT_LIMB_USE_NATIVE 1 | ||
|
||
#define FLINT_MULMOD_SHOUP_THRESHOLD 0 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
Copyright (C) 2025 Vincent Neiger | ||
This file is part of FLINT. | ||
FLINT is free software: you can redistribute it and/or modify it under | ||
the terms of the GNU Lesser General Public License (LGPL) as published | ||
by the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. See <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* parameters found for Intel(R) Core(TM) i7-1165G7 @ 2.80GHz */ | ||
|
||
#ifndef FLINT_MPARAM_H | ||
#define FLINT_MPARAM_H | ||
|
||
/* TODO these were taken directly from skylake flint-mparam.h ----> */ | ||
#define FLINT_FFT_SMALL_MUL_THRESHOLD 1540 | ||
#define FLINT_FFT_SMALL_SQR_THRESHOLD 3080 | ||
|
||
#define FLINT_FFT_MUL_THRESHOLD 32000 | ||
#define FLINT_FFT_SQR_THRESHOLD 32000 | ||
/* <---- these were taken directly from skylake flint-mparam.h */ | ||
|
||
#define FFT_TAB \ | ||
{ { 4, 4 }, { 4, 3 }, { 3, 2 }, { 2, 1 }, { 1, 1 } } | ||
|
||
#define MULMOD_TAB \ | ||
{ 4, 4, 4, 4, 4, 3, 3, 3, 3, 2, 3, 3, 3, 2, 2, 1, 1 } | ||
|
||
#define FFT_N_NUM 17 | ||
#define FFT_MULMOD_2EXPP1_CUTOFF 128 | ||
|
||
#define FLINT_PREINVERT_LIMB_USE_NATIVE 1 | ||
|
||
#define FLINT_MULMOD_SHOUP_THRESHOLD 0 | ||
|
||
#endif |