mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2007-12-20, 12:57   #1
barcode
 
Jan 2003

2×32 Posts
Default sr1sieve and big P

Just some stupid questions. I have been using newpgen for sometime and have recently been trying out sr1sieve and I have a question.

Is there anyway to specify P1/pmax/P as infinite (i.e. continue until I manually stop the process)? Or is there are reason why it must be specified?
barcode is offline   Reply With Quote
Old 2007-12-20, 19:19   #2
lavalamp
 
lavalamp's Avatar
 
Oct 2007
London, UK

1,301 Posts
Default

You could just set it stupidly high, then when you want to stop it use ctrl+c.

As to why it has to be specified, at a guess I'd say that it's to make sure people know what they're doing. A hoop to jump though which forces people to know what they're doing before they do it.
lavalamp is offline   Reply With Quote
Old 2007-12-20, 19:44   #3
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

133428 Posts
Default

Quote:
Originally Posted by barcode View Post
Just some stupid questions. I have been using newpgen for sometime and have recently been trying out sr1sieve and I have a question.

Is there anyway to specify P1/pmax/P as infinite (i.e. continue until I manually stop the process)? Or is there are reason why it must be specified?
Send an e-mail to Geoff. It would probably be fairly easy to remove the requirement, although he would probably set it to some reasonable limit since memory allocated for the sieve is dependent upon max p.
rogue is offline   Reply With Quote
Old 2007-12-21, 04:10   #4
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3×2,083 Posts
Default

srsieve will, if you don't enter a pmax, by default choose a pmax of pmin+4T (4e12). I'm sure that it wouldn't be hard to produce similar functionality in sr1sieve; however, as lavalamp suggested, you could always just set an arbitrarily high value manually. All you have to do is add a "-P x" flag to the command line when you launch sr1sieve (x in my example represents your arbitrarily high pmax). I used 1e12, i.e. 1T, once recently when I was doing a relatively small sieving job with sr1sieve, though you could always set that to a higher value if you expect to need to go higher than 1T. For example, you could use 1e15, which would be the same as 1P--which is higher than any individual siever would likely ever want to undertake, so that should give you plenty of headroom. (The only projects that I know of that have ever gone up that high are Riesel Sieve and PSP, both of which have quite a lot of collective power thrown on their sieves.)
mdettweiler is offline   Reply With Quote
Old 2007-12-21, 08:34   #5
barcode
 
Jan 2003

100102 Posts
Default

Thanks for all the pointers. Setting an absurdly high pmax is what I did in the end (it should keep my PC busy over Christmas anyway).
barcode is offline   Reply With Quote
Old 2007-12-27, 04:05   #6
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default

Quote:
Originally Posted by barcode View Post
Is there anyway to specify P1/pmax/P as infinite (i.e. continue until I manually stop the process)? Or is there are reason why it must be specified?
The main reason that it must be specified rather than using a default value is that sr1sieve was derived from sr5sieve wheich was designed for distributed sieving. A default value for pmax in sr5sieve would usually mean sieving past the end of your reserved range and result in wasted work.

I will add a default value for pmax in a future version of sr1sieve, probably pmin+4e12 as in srsieve, unless someone has a better suggestion.
geoff is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
sr1sieve with work files? masser Conjectures 'R Us 1 2017-12-28 17:43
Building sr1sieve for RPi wombatman Software 14 2017-03-04 16:21
32-bit of sr1sieve and sr2sieve for Win pepi37 Software 5 2013-08-09 22:31
sr1sieve 1.2.0 arminius Riesel Prime Search 14 2007-12-02 22:53

All times are UTC. The time now is 05:28.

Sat Aug 15 05:28:38 UTC 2020 up 2 days, 2:04, 0 users, load averages: 2.60, 2.80, 2.82

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.