mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-01-12, 18:07   #265
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

23·313 Posts
Default

Quote:
Originally Posted by rogue View Post
(going off of memory here) I think this is the -fB option. Can you verify that it exists in the latest released version and if it does, if that is what you are looking for?

yes -fB and no its not working
rebirther is offline   Reply With Quote
Old 2020-01-13, 01:20   #266
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts
Default

Quote:
Originally Posted by rebirther View Post
yes -fB and no its not working
What do you mean by "not working"? Please be more specific.
rogue is online now   Reply With Quote
Old 2020-01-13, 07:47   #267
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

2·193 Posts
Default

Quote:
Originally Posted by rogue View Post
What do you mean by "not working"? Please be more specific.
If it's the same issue as before, I posted a fix at https://www.mersenneforum.org/showpo...&postcount=195. It wasn't in SVN last time I checked.
Happy5214 is offline   Reply With Quote
Old 2020-01-13, 13:51   #268
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
If it's the same issue as before, I posted a fix at https://www.mersenneforum.org/showpo...&postcount=195. It wasn't in SVN last time I checked.
I might have committed the source, but not posted a new build. I'll take a look as soon as I have a chance.
rogue is online now   Reply With Quote
Old 2020-01-13, 21:23   #269
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts
Default

Quote:
Originally Posted by rogue View Post
I might have committed the source, but not posted a new build. I'll take a look as soon as I have a chance.
I have uploaded 1.9.6 to sourceforge. 1.9.5 is still available as I didn't have enough time to test the change in 1.9.6.
  • Refactored logic for "single worker" and "rebuild" logic so they work more nicely together.
  • Fixed calculation of p/sec which is wrong after workers are recreated.
  • Reset factor stats whenever workers are created as the rate is inflated for lower p as far more terms are removed.
  • Fix issue with multiple threads which can cause program to hang.
  • Add support for ABC format to srsieve2.

srsieve now supports ABNP options for the file format. If they don't work as desired, please let me know. Option B is the one that generates a newpgen like header for BOINC. I think that ABC is the PRP format that you are looking for, but as I stated above, I haven't had time to test. I had made these changes months ago.

Last fiddled with by rogue on 2020-01-13 at 21:25
rogue is online now   Reply With Quote
Old 2020-01-14, 16:33   #270
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

250410 Posts
Default

Thx rogue, still not working:


output:

Code:
n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari
able k and n
Sieving with generic logic

n:\sierp-base267>pause
after trying to sieve the file it will abort all the time without an error.
rebirther is offline   Reply With Quote
Old 2020-01-14, 17:19   #271
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22×33×5×11 Posts
Default

Quote:
Originally Posted by rebirther View Post
Thx rogue, still not working:


output:

Code:
n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari
able k and n
Sieving with generic logic

n:\sierp-base267>pause
after trying to sieve the file it will abort all the time without an error.
Hmm. Please PM me your pl_remain.txt file.
rogue is online now   Reply With Quote
Old 2020-01-15, 14:52   #272
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

2×193 Posts
Default

I'm getting a segfault with srsieve2 from SVN:

Code:
$ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Segmentation fault (core dumped)
Generally, I have consistently been having issues with n ranges starting with 1.
Happy5214 is offline   Reply With Quote
Old 2020-01-15, 15:23   #273
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

10111001101002 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
I'm getting a segfault with srsieve2 from SVN:

Code:
$ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Segmentation fault (core dumped)
Generally, I have consistently been having issues with n ranges starting with 1.
Both mtsieve 1.9.5 and 1.9.6 or just 1.9.6?
rogue is online now   Reply With Quote
Old 2020-01-15, 19:22   #274
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22·33·5·11 Posts
Default

Quote:
Originally Posted by rebirther View Post
Thx rogue, still not working:

output:

Code:
n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari
able k and n
Sieving with generic logic

n:\sierp-base267>pause
after trying to sieve the file it will abort all the time without an error.
Stupid error on my part. It will be fixed and posted later today.
rogue is online now   Reply With Quote
Old 2020-01-15, 19:29   #275
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22·33·5·11 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
I'm getting a segfault with srsieve2 from SVN:

Code:
$ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Segmentation fault (core dumped)
Generally, I have consistently been having issues with n ranges starting with 1.
The segfault is the same issue. I'm not certain why one just terminates without a segfault and the other does. For this range I now see this:

Code:
srsieve2 -W 3 -n 100 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 1499901 terms (100 < n < 1500000, k*2^n+c) (expecting 1449733 factors)
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^120 sequences.
Fatal Error:  963643*2^14263-1 mod 269 = 142
I don't know what is causing that yet. Fortunately you can break it up into smaller ranges:

Code:
srsieve2 -W 3 -n 1 -N 200 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 200 terms (1 < n < 200, k*2^n+c) (expecting 193 factors)
Sequence 963643*2^n-1 removed as all terms have a factor
Fatal Error:  All sequences have been removed

srsieve2 -W 3 -n 200 -N 5000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 4801 terms (200 < n < 5000, k*2^n+c) (expecting 4640 factors)
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^24 sequences.
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^24 sequences.

CTRL-C accepted.  Please wait for threads to complete.
Sieve interrupted at p=694848779.
Processor time: 21.72 sec. (0.39 sieving) (2.82 cores)
8 terms written to t17_b2.prp
Primes tested: 33000000.  Factors found: 0.  Remaining terms: 8.  Time: 7.69 seconds.
and eventually test the entire range. That is just a workaround. I still need to find the root cause of this issue and fix it.
rogue is online now   Reply With Quote
Reply

Thread Tools


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

Wed Oct 21 22:09:01 UTC 2020 up 41 days, 19:19, 0 users, load averages: 2.03, 2.09, 2.12

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.