-
Notifications
You must be signed in to change notification settings - Fork 34
/
yafu.ini
360 lines (270 loc) · 10.6 KB
/
yafu.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
% This file is parsed by yafu during startup to apply
% options that impact various algorithms.
% NOTE:
% Command line options that have an argument
% WILL OVERRIDE anything specfied here.
% Use this file to specify commonly used options and/or as
% documentation on the available options.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% General options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Run all multi-threaded algorithms with specified thread count
% threads=1
% the number of Rabin-Miller witnesses to use during PRP checks
% nprp=1
% Turn verbosity to level 1. Default level is 0.
% Note that more v's increase the verbosity (v's on separate lines)
% v
% Turn verbosity completely off
% silent
% skip testing the clock speed for 100 ms during startup
% no_clk_test
% Run the script located in the given filename
% script="my_script_file"
% specify a session logfile. The session logfile records
% commands run, the session random seeds, System/Build info
% and some startup options
% session="session.log"
% Run the given command on numbers inside the given filename
% batchfile="my_batch_file"
% use the following random seed for this session
% seed=42
% print verbose processor info during startup
% vproc
% use the given logfile to record factorization info
% logfile="factor.log"
% set yafu to idle priority
% p
% repeat the given expression/command N times
% repeat=1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Factor options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% before running NFS, do ECM work up to (pretest_ratio * input_size) digits
% pretest_ratio=0.25
% set a GNFS/SIQS crossover, in decimal digits
xover=100
% set a SNFS/SIQS crossover, in decimal digits
snfs_xover=75
% set a (ECM) pretesting plan, e.g., plan=light.
% The following are the valid options and their ratios:
% light (2/9)
% deep (1/3)
% normal (4/13)
% none (0)
% custom (pretest_ratio)
plan=normal
% only pretest (rho, p-1, ecm) the inputs (i.e., no NFS or SIQS), optionally up to a maximum depth
% pretest
% specify an amount of ECM work that has already been performed on an input
% work=25
% specify the name of a file where primes that are found during factor() are recorded
% op="pfile.dat"
% specify the name of a file where factors that are found during factor() are recorded
% of="factored.dat"
% specify the name of a file where unfactored residues remaining after factor() are output
% ou="unfactored.dat"
% perform no ECM on the input
% noecm
% stop after finding one factor
% one
% set the decimal digit threshold below which numbers
% are proved prime using APR-CL
aprcl_p=500
% set the decimal digit threshold above which numbers
% proved prime using APR-CL have additional verbosity enabled
aprcl_d=200
% base to use for the following "stopXY" options (range 2 to 62, default 10)
stopbase=10
% stop after finding a factor equal to this number of digits in base "stopbase"
%stopeq=20
% stop after finding a factor less than or equal to this number of digits in base "stopbase"
%stople=20
% stop after finding a factor greater than or equal to this number of digits in base "stopbase"
%stopge=20
% stop after finding a factor less than this number of digits in base "stopbase"
%stoplt=20
% stop after finding a factor greater than this number of digits in base "stopbase"
%stopgt=20
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% QS options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% use the double-large-prime variation
% forceDLP
% use the triple-large-prime variation. Note that other parameters
% may not be optimized for TLP if this is selected
% forceTLP
% the large prime bound used in siqs with 1,2, or 3 large primes, specified in bits
% siqsLPB
% residues smaller than pmax^siqsMFBD are considered for DLP factoring, where
% pmax is the largest factor base prime
% siqsMFBD
% residues smaller than pmax^siqsMFBT are considered for TLP factoring, where
% pmax is the largest factor base prime
% siqsMFBT
% When using batch factoring of TLP residues, sets the largest prime to use
% in the batch GCD, as a divisor of the max factor base prime. (Larger divisors
% use fewer primes in the GCD.)
% siqsBDiv=3
% When using batch factoring of TLP residues, sets the batch size. Larger batches
% take longer to process, but are more efficient in factoring residues.
% siqsBT=1000000
% Sets the small prime variation threshold
% siqsTFSm=18
% Specify the siqs save file name
% qssave="siqs.dat"
% Sets the size of the factor base (number of primes to use)
% siqsB
% Sets the trial factoring cutoff - sieve locations greater than this size,
% in bits, are reported to the trial factoring routines
% siqsTF
% Stop siqs after finding siqsR relations
% siqsR
% Stop siqs after siqsT seconds
% siqsT
% Sets the number of sieve blocks (per side)
% siqsNB
% Sets the large prime bound as a multiplier of the maximum factor base prime
% siqsM
% Do no perform optimization of the small prime variation threshold
% noopt
% Set a threshold below which siqs will not use a savefile (all relations are
% processed in-memory)
inmem=90
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NFS options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% run experimental cado-nfs+msieve NFS
% cadoMsieve
% relative or absolute path to a directory containing CADO-NFS files
% note: it is necessary to add / or \ to the end of the path
%cado_dir=/home/nyancat/Tools/cado-nfs/
% specify a path to the convert_poly executable file
% you can build it by running "make convert_poly" under the CADO-NFS directory
% it will be under build/*/misc/convert_poly(.exe)
%convert_poly_path=/home/nyancat/Tools/cado-nfs/build/NyanCatCBLFS.mpi/misc/convert_poly
% relative or absolute path to a directory containing ggnfs-lasieve4I* executables.
% without these yafu will not use NFS
%ggnfs_dir=..\ggnfs-bin\x64\
ggnfs_dir=factor/lasieve5_64/
%ggnfs_dir=factor/lasieve5_64/bin/
% comma delimited list of poly files to test sieve
% testsieve
% a percentage of new relations to gather if a filtering attempt fails
% to produce a matrix
% filt_bump=5
% run only the 1st stage of post-processing (filtering)
% nc1
% run only the 2nd stage of post-processing (matrix build, and matrix solve).
% NOTE this is will start a matrix solve from scratch! to resume, use -ncr
% nc2
% run only the third stage of post-processing (square root)
% nc3
% resume a matrix solve
% ncr
% force the use of gnfs (as opposed to snfs)
% gnfs
% use the specified ggnfs-lasieve4I solver (e.g., 11, 12, ... 15)
% siever
% use the specified number of threads when matrix solving (can be
% different from the general "threads" options)
% lathreads
% run only the sieving step, optionally with a comma-delimited start and
% stop value for the special-q
% ns
% run only the poly search step, optionally with a comma-delimited start and
% stop value for the leading coefficient
% np
% run only the post-processing stages (1 through 3)
% nc
% set a poly search methology ('deep', 'wide', 'fast', 'min', 'avg', or 'good')
% deep: all threads search the same leading coefficent
% wide: search N times the number of leading coefficents with N threads
% fast: split a search range amongst N threads
% min: stop when a polynomial of minimum quality is found (according to a heuristic)
% avg: stop when a polynomial of average quality is found (according to a heuristic)
% good: stop when a polynomial of good quality is found (according to a heuristic)
psearch=avg
% restart a NFS job (when there is an existing nfs.dat file, regardless of input)
% R
% set a batch size for each threads when searching polynomial leading coefficients
% pbatch=250
% Stop NFS after ggnfsT seconds
% ggnfsT
% use algebraic-side lattice sieving
% a
% use rational-side lattice sieving
% r
% input job file for NFS
% job
% output file name for gnfs sieving
% o
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ECM options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set the B1 level for ECM.
B1ecm=11000
% Set the B2 level for ECM.
% Only needed if you want something other than the default
% for the current B1.
% B2ecm=1100000
% specify a path to an ECM executable file
%ecm_path=..\gmp-ecm\bin\x64\Release\ecm.exe
%ecm_path=../gmp-ecm/install/mingw/bin/ecm.exe
%ecm_path=../gmp-ecm/bin/ecm
ecm_path=../trosi_ecm_git/ecm
% Use this to use gmp-ecm instead of avx-ecm when avx-ecm available
% prefer_gmpecm
% Use this to use gmp-ecm stage 2 instead of avx-ecm when avx-ecm available
% prefer_gmpecm_stg2
% output the stage 1 residues of avx-ecm
% saveB1
% crossover to use the external ECM executable over the internally linked
% ECM (or avx-ecm)
ext_ecm=1000000000
% specify a particular curve using sigma. For avx-ecm, this specifies the
% starting sigma for the first vector position. Other lanes increment this value.
% sigma
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% P-1 options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set the B1 level for P-1.
% B1pm1=100000
% Set the B2 level for P-1.
% Only needed if you want something other than the default
% for the current B1.
% B2pm1=10000000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% P+1 options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set the B1 level for P+1.
B1pp1=20000
% Set the B2 level for P+1.
% Only needed if you want something other than the default
% for the current B1.
% B2pp1=2000000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Brent-Pollard Rho options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% rhomax=200
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fermat options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% fmtmax=1000000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Eratosthenes options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% output primes found to the file "primes.dat"
% pfile
% output primes found to the screen
% pscreen
% use the specified block size in the sieve
% soe_block
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Tune options
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If you run tune(), some information about the results should
% appear below here
tune_info=Intel(R) Xeon(R) Gold 5122 CPU @ 3.60GHz,LINUX64,1.59078e-05,0.196092,0.299688,0.0999245,102.36,42
tune_info=Intel(R) Xeon(R) Gold 6254 CPU @ 3.10GHz,LINUX64,9.8659e-06,0.195311,0.035202,0.113492,99.9735,42
tune_info=Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz,LINUX64,1.61863e-05,0.190237,0.0430548,0.111798,100.537,42