mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Reply
 
Thread Tools
Old 2010-02-16, 23:01   #34
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17·251 Posts
Default

Quote:
Originally Posted by rogue View Post
PFGW has the ability to tell you the FFT length with -V. Maybe Jean has a hidden option or could add one.
As Max said, LLR always tells you the FFT length. No problem there. The problem is easily seeing where the cutoffs are. You can do this for base 2 with the fft_len utility (designed and easy for a single k, not quite so easy for a range of k's, but still quite workable), but (AFAIK) there's no similar thing for other bases.

Last fiddled with by Mini-Geek on 2010-02-16 at 23:01
Mini-Geek is offline   Reply With Quote
Old 2010-02-16, 23:03   #35
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
As Max said, LLR always tells you the FFT length. No problem there. The problem is easily seeing where the cutoffs are. You can do this for base 2 with the fft_len utility (designed and easy for a single k, not quite so easy for a range of k's, but still quite workable), but (AFAIK) there's no similar thing for other bases.
Does fft_len utilize LLR to do the grunt work behind it? If so, then perhaps with some small modifications it would work all right for the new N-1/N+1 tests on other bases.
mdettweiler is offline   Reply With Quote
Old 2010-02-16, 23:22   #36
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10AB16 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Does fft_len utilize LLR to do the grunt work behind it? If so, then perhaps with some small modifications it would work all right for the new N-1/N+1 tests on other bases.
No.
http://www.mersenneforum.org/showthr...2302#post62302
I don't know exactly how it works or how to modify it to work for other bases (if possible). These seem to be the critical lines of code: (from llrtools.c; log2k is the base 2 logarithm of k)
Code:
  if (k < 1048576)        /* is k < 2^20 ??? */
    nmax = n_mersenne -= (long)(log2k + log2k*(double)(fftlen/2));
  else                    /* zero-padded FFT is used, if k > 2^20 */
    nmax = (long)(((double)n_mersenne + (double)fftlen*0.3)/2.0);
e.g. FFT length 20480 can do a maximum Mersenne n of 423300, (as read from the "maxlen.txt" file) so the max n for k=300 and FFT length=20480 is 423300-(8.23+8.23*10240)=423300-84283=339017 (later decremented to 339016)
(and this is about what the program in fact does return: 339028, the difference probably attributable to my 8.23 estimation)
I don't see anything there that can easily convert to other bases. But that might just be because I don't really know what's going on with that formula and why it's accurate.

Last fiddled with by Mini-Geek on 2010-02-16 at 23:24
Mini-Geek is offline   Reply With Quote
Old 2010-02-18, 01:12   #37
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

22×7×269 Posts
Default

Selecting an FFT length is surprisingly complex. The code is buried in gwnum.c of the 25.13 sources (the key routine is gwinfo). How complex is it? Imagine testing k*b^n+c with k, b, and c constant you could run into a case where n uses one FFT length, increasing n by 1 uses a larger FFT length, but increasing n by 2 is back using the smaller FFT length!

LLR should not be selecting FFT length or maximum n - it should let the gwnum handle these calculations.

In general, base-2 FFTs will always be faster than non-base-2 FFTs for the same FFT length. This is because the rounding and carry propagation code is more complex for non-base-2.
Prime95 is offline   Reply With Quote
Old 2010-02-19, 07:42   #38
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

11048 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Selecting an FFT length is surprisingly complex. The code is buried in gwnum.c of the 25.13 sources (the key routine is gwinfo). How complex is it? Imagine testing k*b^n+c with k, b, and c constant you could run into a case where n uses one FFT length, increasing n by 1 uses a larger FFT length, but increasing n by 2 is back using the smaller FFT length!

LLR should not be selecting FFT length or maximum n - it should let the gwnum handle these calculations.

In general, base-2 FFTs will always be faster than non-base-2 FFTs for the same FFT length. This is because the rounding and carry propagation code is more complex for non-base-2.
Hi,

All versions of LLR let gwnum calculate the FFT length. I always thought it is the better thing to do !

Best Regards,
Jean
Jean Penné is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparison of NFS tools CRGreathouse Factoring 3 2018-02-05 14:55
APRCL implementations comparison ldesnogu Computer Science & Computational Number Theory 11 2015-10-28 12:54
Comparison Page Not Working wblipp Operation Billion Digits 0 2012-11-24 06:33
PFGW 3.3.6 or PFGW 3.4.2 Please update now! Joe O Sierpinski/Riesel Base 5 5 2010-09-30 14:07
Pollard's Algorithm & That of Devaraj-a comparison devarajkandadai Miscellaneous Math 22 2005-06-10 11:13

All times are UTC. The time now is 09:47.


Tue Jul 27 09:47:12 UTC 2021 up 4 days, 4:16, 0 users, load averages: 2.03, 2.04, 1.94

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.