mersenneforum.org  

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

Reply
 
Thread Tools
Old 2015-08-13, 16:41   #100
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

144810 Posts
Default

I found bug in srbsieve.
On first post you say
Quote:
You can specify as many of these as you want, although there is a practical limit due to newpgnew limits with sieving
I made 60, and srbsieve just exited.. So I reduce number until 50 ( and with 50) srbsieve works OK. But if it is 51.th in srbsieve.ini: it exits and do no job.

Last fiddled with by pepi37 on 2015-08-13 at 16:42
pepi37 is offline   Reply With Quote
Old 2015-08-13, 20:16   #101
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

143208 Posts
Default

Quote:
Originally Posted by pepi37 View Post
I made 60, and srbsieve just exited.. So I reduce number until 50 ( and with 50) srbsieve works OK. But if it is 51.th in srbsieve.ini: it exits and do no job.
There is a limit of 50 in the code. I could change the program to exit nicely, but I see little reason that anyone would sieve to such a high n with newpgen when using this program.
rogue is offline   Reply With Quote
Old 2015-08-13, 20:54   #102
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

23·181 Posts
Default

Ok , I go off the scale :)

Please can you clarify this

phase= is used to sieve in steps. The first value is the upper n for the phase followed by the number of concurrent k to sieve and finally by the maxp of the sieving.

What doest it mean, and how to calculate that number to be optimal in all phase stages?
pepi37 is offline   Reply With Quote
Old 2015-08-13, 21:00   #103
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

22·5·89 Posts
Default

It will sieve a certain # of k at a time. So if you have, say, 10,000 k to go through, you can choose to do 1000 at a time for a given phase. Maybe it's a little faster? I haven't played with it much.
wombatman is offline   Reply With Quote
Old 2015-08-13, 21:10   #104
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

23·181 Posts
Default

Quote:
Originally Posted by wombatman View Post
It will sieve a certain # of k at a time. So if you have, say, 10,000 k to go through, you can choose to do 1000 at a time for a given phase. Maybe it's a little faster? I haven't played with it much.
Great, since there is only 90 left( in my case), and I set to 1000 it is then OK
Thanks for explanation!
pepi37 is offline   Reply With Quote
Old 2015-08-14, 07:05   #105
unconnected
 
unconnected's Avatar
 
May 2009
Russia, Moscow

2,593 Posts
Default

uint32_t for p_max in source code seems not enough, should be uint64_t.

Code:
...
Status (02:50:50): Completed phase 4: 28 remaining
ERROR: 64 bit sieve is limited to primes below 2^51.
srbsieve.ini:
Code:
...
phase=120,50000,500000
phase=330,30000,3000000
phase=1200,20000,30000000
phase=4400,10000,300000000
phase=10000,5000,3000000000
unconnected is online now   Reply With Quote
Old 2015-08-14, 07:09   #106
unconnected
 
unconnected's Avatar
 
May 2009
Russia, Moscow

2,593 Posts
Default

Code:
#ifdef WIN32
   sprintf(buffer, "del %s sr_b.pfgw pfgw.ini", inFileName);
   system("pfgw64 -Cquiet -f0 sr_b.pfgw > nul");
   system(buffer);
#else
   sprintf(buffer, "rm %s sr_b.pfgw pfgw.ini", inFileName);
   system("./pfgw64 -Cquiet -f0 sr_b.pfgw > nul");
   system(buffer);
#endif
Another small addition - nul should be /dev/null in second case.
unconnected is online now   Reply With Quote
Old 2015-08-14, 07:26   #107
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

23×181 Posts
Default

Yes, got same error four times ( on four cores)

Status (09:25:33): Completed phase 5: 13 remaining
ERROR: 64 bit sieve is limited to primes below 2^51.

my ini file

Quote:
phase=1000,200,10000000
phase=2000,100,30000000
phase=4000,100,100000000
phase=8000,100,300000000
phase=12000,100,1000000000
phase=15000,100,3000000000
phase=20000,100,4000000000
phase=25000,100,5000000000
pepi37 is offline   Reply With Quote
Old 2015-08-14, 12:47   #108
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·397 Posts
Default

Okay. I think I've got everyone's suggestions implemented.
Attached Files
File Type: 7z srbsieve.7z (32.5 KB, 86 views)
rogue is offline   Reply With Quote
Old 2015-08-14, 23:33   #109
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24×397 Posts
Default

One mistake, I have /dev/nul instead of /dev/null. I'll update if another bug is found.
rogue is offline   Reply With Quote
Old 2015-08-14, 23:45   #110
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

22·5·89 Posts
Default

My house had a short power outage. Is there a good way to try and pick back up with srbsieve, at least in terms of having it remove all the k's that have a prime found, or, even better, near the last n it was searching?
wombatman is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Prime Riesel and Sierpinski k robert44444uk Open Projects 587 2016-11-13 15:26
Sierpinski/ Riesel bases 6 to 18 robert44444uk Conjectures 'R Us 139 2007-12-17 05:17
Sierpinski/Riesel Base 10 rogue Conjectures 'R Us 11 2007-12-17 05:08
Sierpinski / Riesel - Base 23 michaf Conjectures 'R Us 2 2007-12-17 05:04
Sierpinski / Riesel - Base 22 michaf Conjectures 'R Us 49 2007-12-17 05:03

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


Tue Jul 27 09:16:08 UTC 2021 up 4 days, 3:45, 0 users, load averages: 1.47, 1.66, 1.61

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.