Adds an index for tuneup Adds documentation for -p, -o, -t for ./tuneup Add help for -E, -F, -R to ./speed Updated help for -o in ./speed
diff -r 5aa2722b10b8 doc/gmp.texi --- a/doc/gmp.texi Fri Mar 27 14:45:47 2020 -0700 +++ b/doc/gmp.texi Fri Mar 27 15:29:53 2020 -0700 @@ -1793,6 +1793,8 @@ @node Performance optimization, , Known Build Problems, Installing GMP @section Performance optimization @cindex Optimizing performance +@cindex Performance Tuning +@cindex tuneup @c At some point, this should perhaps move to a separate chapter on optimizing @c performance. @@ -1819,10 +1821,17 @@ To use the results, put the output in the file indicated in the @samp{Parameters for ...} header. Then recompile from scratch. -The @code{tuneup} program takes one useful parameter, @samp{-f NNN}, which -instructs the program how long to check FFT multiply parameters. If you're -going to use GMP for extremely large numbers, you may want to run @code{tuneup} -with a large NNN value. +The @code{tuneup} program takes several parameter, + +@samp{-p num}, set precision as number of time units each routine must run. + +@samp{-t}, turns on some diagnostic traces, a second @samp{-t} turns on more traces. + +@samp{-f NNN}, instructs the program how long to check FFT multiply parameters. +If you're going to use GMP for extremely large numbers, you may want to run +@code{tuneup} with a large NNN value. + +@samp{-o option}, set misc options (verbose, addrs, cycles-broken) shared with speed. @node GMP Basics, Reporting Bugs, Installing GMP, Top diff -r 5aa2722b10b8 tune/speed.c --- a/tune/speed.c Fri Mar 27 14:45:47 2020 -0700 +++ b/tune/speed.c Fri Mar 27 15:29:53 2020 -0700 @@ -1091,15 +1091,17 @@ printf (" -t step step through sizes by given amount\n"); printf (" -f factor step through sizes by given factor (eg. 1.05)\n"); printf (" -r show times as ratios of the first routine\n"); + printf (" -c show times in CPU cycles\n"); + printf (" -C show times in cycles per limb\n"); printf (" -d show times as difference from the first routine\n"); printf (" -D show times as difference from previous size shown\n"); - printf (" -c show times in CPU cycles\n"); - printf (" -C show times in cycles per limb\n"); + printf (" -E, -F with -D square sizes before comparing times\n"); printf (" -u print resource usage (memory) at end\n"); + printf (" -R seed random based on time\n"): printf (" -P name output plot files \"name.gnuplot\" and \"name.data\"\n"); printf (" -a <type> use given data: random(default), random2, zeros, aas, ffs, 2fd\n"); printf (" -x, -y, -w, -W <align> specify data alignments, sources and dests\n"); - printf (" -o addrs print addresses of data blocks\n"); + printf (" -o <option> set misc options (verbose, addrs, cycles-broken) shared with tune\n"); printf ("\n"); printf ("If both -t and -f are used, it means step by the factor or the step, whichever\n"); printf ("is greater.\n"); diff -r 5aa2722b10b8 tune/tuneup.c --- a/tune/tuneup.c Fri Mar 27 14:45:47 2020 -0700 +++ b/tune/tuneup.c Fri Mar 27 15:29:53 2020 -0700 @@ -29,10 +29,14 @@ see https://www.gnu.org/licenses/. */ -/* Usage: tuneup [-t] [-t] [-p precision] +/* Usage: tuneup [-t] [-t] [-p precision] [-f NNN] -t turns on some diagnostic traces, a second -t turns on more traces. + -f NNN, set max fft size (in limbs) to NNN. + + -p precision, increase amount of cycles + Notes: The code here isn't a vision of loveliness, mainly because it's subject
_______________________________________________ gmp-devel mailing list gmp-devel@gmplib.org https://gmplib.org/mailman/listinfo/gmp-devel