mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Sierpinski/Riesel Base 5

Reply
 
Thread Tools
Old 2007-10-20, 21:20   #386
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default srsieve 0.6.7, bug fix.

Lavalamp has found a serious bug affecting srsieve versions 0.5.0 to 0.6.6.

The bug could cause factors for a sequence to be missed if both of the following conditions occur:

1. The sequence k*b^n+c has both odd and even exponents n in the sieve.
2. The subsequence base b^Q selected by srsieve has an odd exponent Q.

The first condition is easy to check, for sequences k*2^n+/-1 it applies to k that are multiples of 3. But the only way to check the second condition is probably to re-run srsieve using the original sieve file and parameters, and look for a message like:

`Split X base b sequences into Y base b^Q subsequences.'

If the exponent Q is odd then the bug might have affected the sequence. If the exponent Q is even, or if no message was printed, then the bug didn't affect the sequence.

Any missed factors will divide terms k*b^n+c with even n.

If anyone is faced with spending a large amount of CPU time searching for factors missed by this bug, let me know the details of the sieve by PM or email and I might be able to narrow the search space further.

This bug didn't affect any version of sr[125]sieve.
geoff is offline   Reply With Quote
Old 2007-10-20, 21:48   #387
BlisteringSheep
 
BlisteringSheep's Avatar
 
Oct 2006
On a Suzuki Boulevard C90

2×3×41 Posts
Default

Quote:
Originally Posted by BlisteringSheep View Post
Geoff, There's a compilation error in mulmod-ppc64.c, line 8, undeclared variable 'p'. I think it's just a copy-and-paste, where the function parameter is named 'b' and and should be 'p' instead. At least that's the change I made. :)
I suppose I should said this was against sr1sieve-1.2.0?
BlisteringSheep is offline   Reply With Quote
Old 2007-10-20, 22:22   #388
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default

Quote:
Originally Posted by BlisteringSheep View Post
Geoff, There's a compilation error in mulmod-ppc64.c, line 8, undeclared variable 'p'. I think it's just a copy-and-paste, where the function parameter is named 'b' and and should be 'p' instead. At least that's the change I made. :)
Thanks, I'll fix it in the next release.

Quote:
FYI, here's some startup info for v1.1.12 and v1.2.0 on a 970MP:
I don't expect the sr1sieve 1.2.x and sr2sieve 1.6.x versions to benefit the PPC64 yet, any change in speed so far is purely accidental :-)
geoff is offline   Reply With Quote
Old 2007-10-20, 23:07   #389
BlisteringSheep
 
BlisteringSheep's Avatar
 
Oct 2006
On a Suzuki Boulevard C90

2×3×41 Posts
Default

Quote:
Originally Posted by geoff View Post
I don't expect the sr1sieve 1.2.x and sr2sieve 1.6.x versions to benefit the PPC64 yet, any change in speed so far is purely accidental :-)
I didn't expect any speedup either. :) I mainly wanted to let you know that there also wasn't any slowdown, and also to let you see the step methods, etc., it was choosing

Keep up the good work! One question: is there a test suite like sr5check for sr1sieve?
BlisteringSheep is offline   Reply With Quote
Old 2007-10-20, 23:35   #390
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

22058 Posts
Default

Quote:
Originally Posted by BlisteringSheep View Post
Keep up the good work! One question: is there a test suite like sr5check for sr1sieve?
I will upload one on the next day or two. If you need something now you could convert the sr5check.txt to NewPgen format using `srfile -g sr5check.txt' then run `sr1sieve -i sr5check.txt -p 100e6 -P 150e6 -f factors.txt' on each of the individual .npg files.
geoff is offline   Reply With Quote
Old 2007-10-21, 10:36   #391
Cruelty
 
Cruelty's Avatar
 
May 2005

110010110002 Posts
Default

Under linux x64, latest versions of both sr1 and sr2 do not print benchmark for "giant step" using -vv switch...
Cruelty is offline   Reply With Quote
Old 2007-10-22, 21:14   #392
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default

Quote:
Originally Posted by BlisteringSheep View Post
One question: is there a test suite like sr5check for sr1sieve?
I have uploaded an archive sr1check.zip in the same directory as the sr1sieve source. There are instructions in the README.

Quote:
Originally Posted by Cruelty
Under linux x64, latest versions of both sr1 and sr2 do not print benchmark for "giant step" using -vv switch...
There is only one giant step method for x86-64 now, so no need for a benchmark.
geoff is offline   Reply With Quote
Old 2007-10-23, 05:20   #393
BlisteringSheep
 
BlisteringSheep's Avatar
 
Oct 2006
On a Suzuki Boulevard C90

2×3×41 Posts
Default

Quote:
Originally Posted by geoff View Post
I have uploaded an archive sr1check.zip in the same directory as the sr1sieve source. There are instructions in the README.
Thanks. Everything tested out fine, both with "make check" and with the sr1check files.

Is there any thing I could do to help you (tests to run, measurements to gather, etc.)? I've been working with some small projects that use sr1sieve instead of my normal sr2sieve. I'm always glad to run any tests you'd like of any of your programs or variants on any of my different PowerPCs.
BlisteringSheep is offline   Reply With Quote
Old 2007-10-25, 02:00   #394
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default sr2sieve 1.6.11

This version has a new -j or --sobistrator switch will make sr2sieve behave in a similar way to JJsieve or proth_sieve, for compatibility with Sobistrator:
  • Checkpoints will be written to SoBStatus.dat, including a kp/s speed measured using elapsed time.
  • If no range is given on the command line, or if the range given matches the one in SoBStatus.dat, work will resume from SoBStatus.dat. If the range given on the command line is different to the one in SoBStatus.dat then the one given on the command line will be used and a warning given.
  • After the current range finishes, subsequent ranges will be read from nextrange.txt.
  • Factors will be written to fact.txt and duplicates to factexcl.txt (these file names can be overridden with the -f and -D switches.)
Idealy it should be possible to start a range with JJsieve and continue it with `sr2sieve -j -s', and vice versa.
geoff is offline   Reply With Quote
Old 2007-10-25, 15:52   #395
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

186916 Posts
Default

Quote:
Originally Posted by geoff View Post
This version has a new -j or --sobistrator switch will make sr2sieve behave in a similar way to JJsieve or proth_sieve, for compatibility with Sobistrator:
  • Checkpoints will be written to SoBStatus.dat, including a kp/s speed measured using elapsed time.
  • If no range is given on the command line, or if the range given matches the one in SoBStatus.dat, work will resume from SoBStatus.dat. If the range given on the command line is different to the one in SoBStatus.dat then the one given on the command line will be used and a warning given.
  • After the current range finishes, subsequent ranges will be read from nextrange.txt.
  • Factors will be written to fact.txt and duplicates to factexcl.txt (these file names can be overridden with the -f and -D switches.)
Idealy it should be possible to start a range with JJsieve and continue it with `sr2sieve -j -s', and vice versa.
Is it compatible with Rieselator, too?
mdettweiler is offline   Reply With Quote
Old 2007-10-25, 17:20   #396
axn
 
axn's Avatar
 
Jun 2003

2·3·7·112 Posts
Default

Quote:
Originally Posted by Anonymous View Post
Is it compatible with Rieselator, too?
Should be, on account of the fact that you can specify different file name instead of RieselStatus.dat (need to set it as SobStatus.dat, I guess). Everything else stays the same.

EDIT:- I would even say that Sobistrator and Rieselator are interchangeable !!

Last fiddled with by axn on 2007-10-25 at 17:26
axn is online now   Reply With Quote
Reply



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 12:12.


Mon Aug 2 12:12:26 UTC 2021 up 10 days, 6:41, 0 users, load averages: 1.87, 1.60, 1.50

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.