mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2009-02-13, 14:37   #166
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

3×17×23 Posts
Default

Quote:
Originally Posted by smh View Post
Setting num_cpu in the script only determines the number of threads msieve uses to solve the matrix.
You must be running an old version of the script because it does that and also sets the number of sievers to use as well in the latest SVN build of factMsieve.pl which you can find here: http://ggnfs.svn.sourceforge.net/vie...s/trunk/tests/

Jeff.

Last fiddled with by Jeff Gilchrist on 2009-02-13 at 14:38
Jeff Gilchrist is offline   Reply With Quote
Old 2009-02-13, 14:41   #167
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

22258 Posts
Default

Quote:
Originally Posted by tmorrow View Post
For those lazy (like me :-) the conversion from msieve.fb to example.poly can be automated with sed/awk or with perl scripts, e.g. in your webpage example:
Thanks for the script, I will add that as well.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-02-13, 15:44   #168
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

3·17·23 Posts
Default

Quote:
Originally Posted by jasonp View Post
When the input is larger (~140 digits and up) I don't trust either the polynomial selection parameters or the optimization in msieve to find a better polynomial all the time; it has done so, but I see a lot of work needed for larger jobs.
So Jason, would you suggest that I recommend that people use pol51 for jobs larger than 140 digits. Is that going to be true with the 1.40 release as well?

Jeff.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-02-13, 16:27   #169
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3×1,181 Posts
Default

If you are writing an introductory guide then go ahead and recommend a safe default for everybody. I'd be fine with not using msieve at all through the perl script; people here have enough experience to know what to do if they need extra polynomial oomph. The sieving speedup for small jobs is not terribly big anyway.

v1.40 will have many changes in stage 2 (the pol51opt part of things) but I have barely changed stage 1 at all, and this will still need major optimizations before it becomes reliably competitive with pol5.
jasonp is offline   Reply With Quote
Old 2009-02-13, 17:00   #170
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

3×17×23 Posts
Default

Ok I think what I will do for now then is to modify the guide to show an example using pol51 for polynomial generation so it has less steps and is simpler for everyone.

But I will also put a link on the page to instructions on how to use msieve for polynomial generation including the handy script from tmorrow in case pol51 fails or they want to have more optimal polys for smaller files.

Thanks for everyone's suggestions, I hope to have an updated version in the near future.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-02-13, 20:46   #171
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

3·17·23 Posts
Default

Ok I have updated the main part of the guide here:
http://gilchrist.ca/jeff/factoring/n...ers_guide.html

and the sub-guide for msieve poly selection is here:
http://gilchrist.ca/jeff/factoring/n...oly_guide.html

Hopefully it all meshes together nicely now.

Jeff.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-02-16, 17:42   #172
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7×503 Posts
Default

Quote:
Originally Posted by Jeff Gilchrist View Post
I wished the same thing so I figured I should make it easier for the next group of people starting. Thanks for the comments, if you could track down the URL for the linux binaries and the SNFS details I will add them.

I also forgot to add a link to the GGNFS message board if people want more info.
ok, after much frustration (a pox on the forum search engine!), here are links to the snfs polynomial generation programs that I know about:

For Homogenous Cunninghams
http://www.mersenneforum.org/showthread.php?t=8739

For Cunninghams:
http://home.in.tum.de/~kruppa/numbth.html

And I think there is one for XYYX numbers in thats groups' yahoo mailing list.

And here are some links to 64 bit optimized lattice siever binaries (opteron or core2):
http://www.mersenneforum.org/showpos...6&postcount=23
bsquared is offline   Reply With Quote
Old 2009-02-16, 20:29   #173
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

3×17×23 Posts
Default

Quote:
Originally Posted by bsquared View Post
ok, after much frustration (a pox on the forum search engine!), here are links to the snfs polynomial generation programs that I know about:
Thanks very much, I have updated the guide with the links.

Jeff.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-02-23, 11:38   #174
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

3·17·23 Posts
Default

I have found an annoying bug in the factMsieve.pl that shows the divisors as being 1 more digit than they really are. Take C131_106_87 as an example, the msieve output is:

Code:
Sun Feb 22 21:37:50 2009  multiply complete, coefficients have about 83.63 million bits
Sun Feb 22 21:37:52 2009  initial square root is modulo 1006739
Sun Feb 22 21:42:20 2009  prp62 factor: 79961052113534129805009168985584938017201796671547330986184689
Sun Feb 22 21:42:20 2009  prp69 factor: 863509555966817212628874398558741301013796755368031305269361965375077
Sun Feb 22 21:42:20 2009  elapsed time 00:08:33
The script reads in that data and outputs:

Code:
Number: C131_106_87
N=69047132605197387428514937682610265456943664752456696963177343638566252052982783316890351486357829680653130018807198946259079596053
  ( 131 digits)
Divisors found:
 r1=79961052113534129805009168985584938017201796671547330986184689
 (pp63)
 r2=863509555966817212628874398558741301013796755368031305269361965375077
 (pp70)
You can see that the real value is 62 and 69, but the final report from the script shows 63 and 70. It always seems to be off by 1.

The actual perl code that prints that info is:

Code:
# Sort ascending numerically
@DIVISORS = sort {$a <=> $b} (@DIVISORS);
$r = 1;
while($_ = shift @DIVISORS) {
  printf(" r%d=%s (pp%d)\n", $r++, $_, length($_));
}
So it is just using the built-in length() function but I'm guessing the data it reads in must contain an extra space or some other data. I'm not a perl coder so I'm not sure the best way to fix this problem. Any takers?

Jeff.

Last fiddled with by Jeff Gilchrist on 2009-02-23 at 11:39
Jeff Gilchrist is offline   Reply With Quote
Old 2009-02-23, 11:50   #175
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

144308 Posts
Default

Quote:
Originally Posted by Jeff Gilchrist View Post
I have found an annoying bug in the factMsieve.pl that shows the divisors as being 1 more digit than they really are.
My guess is that this is running on Windows and picking up the \r\n line endings; try adding a line "s/[^0-9]//g;" after "while($_ = shift @DIVISORS) {" and see if that helps.

Last fiddled with by fivemack on 2009-02-23 at 11:50
fivemack is offline   Reply With Quote
Old 2009-02-23, 14:37   #176
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

22258 Posts
Default

Quote:
Originally Posted by fivemack View Post
My guess is that this is running on Windows and picking up the \r\n line endings; try adding a line "s/[^0-9]//g;" after "while($_ = shift @DIVISORS) {" and see if that helps.
Thanks, I will try that.
Jeff Gilchrist is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of GGNFS LegionMammal978 Msieve 17 2017-01-20 19:49
Running other programs while running Prime95. Neimanator PrimeNet 14 2013-08-10 20:15
Error running GGNFS+msieve+factmsieve.py D. B. Staple Factoring 6 2011-06-12 22:23
GGNFS or something better? Zeta-Flux Factoring 1 2007-08-07 22:40
ggnfs ATH Factoring 3 2006-08-12 22:50

All times are UTC. The time now is 15:48.


Fri Aug 6 15:48:35 UTC 2021 up 14 days, 10:17, 1 user, load averages: 2.26, 2.29, 2.47

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.