summaryrefslogtreecommitdiff
path: root/tune
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-10-01 01:43:37 +0200
committerKevin Ryde <user42@zip.com.au>2001-10-01 01:43:37 +0200
commit56815f1d5c059ea5c4de06f3f5918c0f011d4a07 (patch)
tree6d3c4dc57985adfde9e3d1f0ab79923dc62f5508 /tune
parent3d52db16b0e73b52d5d42dba64130eac106c2693 (diff)
downloadgmp-56815f1d5c059ea5c4de06f3f5918c0f011d4a07.tar.gz
* tune/tuneup.c (POWM_THRESHOLD): Reduce stop_factor to 1.1 to help
Cray vector systems.
Diffstat (limited to 'tune')
-rw-r--r--tune/tuneup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tune/tuneup.c b/tune/tuneup.c
index 4f052975d..3db049b65 100644
--- a/tune/tuneup.c
+++ b/tune/tuneup.c
@@ -908,13 +908,18 @@ all (void)
/* This is an indirect determination, based on a comparison between redc
and mpz_mod. A fudge factor of 1.04 is applied to redc, to represent
- additional overheads it gets in mpz_powm. */
+ additional overheads it gets in mpz_powm.
+
+ stop_factor is 1.1 to hopefully help cray vector systems, where
+ otherwise currently it hits the 1000 limb limit with only a factor of
+ about 1.18 (threshold should be around 650). */
{
static struct param_t param;
param.name[0] = "POWM_THRESHOLD";
param.function = speed_redc;
param.function2 = speed_mpz_mod;
param.step_factor = 0.03;
+ param.stop_factor = 1.1;
param.function_fudge = 1.04;
one (powm_threshold, 1, &param);
}