mersenneforum.org  

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

Reply
 
Thread Tools
Old 2007-07-13, 21:28   #353
Cruelty
 
Cruelty's Avatar
 
May 2005

23×7×29 Posts
Default

Comparison of linux.x86-64 binaries. Some mixed results, overall minor improvement.
Attached Files
File Type: txt 1514vs1515.txt (2.8 KB, 100 views)

Last fiddled with by Cruelty on 2007-07-13 at 21:29
Cruelty is offline   Reply With Quote
Old 2007-08-01, 01:31   #354
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default sr1sieve 1.1.8, sr5sieve 1.5.16

These versions reduce the limit for the x86-64 SSE2 mulmod to 2^51. Testing against GMP revealed that it could fail for some values of p just below 2^52.

This affected all x86-64 binaries from sr1sieve version 1.0.0 to 1.1.7 and from sr5sieve version 1.4.11 to 1.5.15. x86 and ppc64 builds are not affected.
geoff is offline   Reply With Quote
Old 2007-08-01, 08:57   #355
Cruelty
 
Cruelty's Avatar
 
May 2005

23·7·29 Posts
Default

I haven't reached 100T yet so this "bug" does not affect me fortunately...
BTW: Geoff, since you are now a proud owner of C2D, can we expect some further fine-tuning of sr(x)sieve
Cruelty is offline   Reply With Quote
Old 2007-08-03, 01:35   #356
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

100100001012 Posts
Default sr1sieve 1.1.9, sr5sieve 1.5.17 (Windows, OS X)

These versions fix a memory allocation bug that could cause the program to abort at the end of a sieve range, or a memory leak if there were multiple ranges queued up in the work file.

No work needs to be repeated, as all results for the range would have been written to file before the abort. The affected builds were:

Windows: sr1sieve versions 1.0.25 - 1.1.6, sr5sieve versions 1.4.42 - 1.5.15.
OS X: sr1sieve versions 1.0.25 - 1.1.8, sr5sieve versions 1.4.42 - 1.5.16.

The bug didn't affect the Linux builds. Thanks rogue for finding it.

Quote:
Originally Posted by Cruelty View Post
BTW: Geoff, since you are now a proud owner of C2D, can we expect some further fine-tuning of sr(x)sieve
Almost certainly :-).
geoff is offline   Reply With Quote
Old 2007-08-03, 10:46   #357
Cruelty
 
Cruelty's Avatar
 
May 2005

31308 Posts
Default

does it mean that sr2sieve was not affected?
Cruelty is offline   Reply With Quote
Old 2007-08-05, 22:02   #358
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

115710 Posts
Default

Quote:
Originally Posted by Cruelty View Post
does it mean that sr2sieve was not affected?
sr2sieve was affected too, same versions as sr5sieve.
geoff is offline   Reply With Quote
Old 2007-09-07, 03:53   #359
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13×89 Posts
Default Future plans

A whole month without a new version :-)

I have mainly been working on gcwsieve lately, but I am learning some things that I should be able to apply to sr5sieve. In particular I am beginning to understand why the performance of the modular multiplications is so much better on Core 2 CPUs than others, and maybe some things I can do to improve the situation for the Athlon 64.

Here are some plans:

1. Make 64-bit Windows binaries. Once this is done for gcwsieve then it will not be too much harder to do for sr5sieve.

2. Rewrite the x86-64 baby-steps and giant-steps methods completely in assembly. This will allow the hashtable code to be interleaved with the mulmod code, which should help hide the higher instruction latencies of the Athlon 64.

3. Make a library of `streaming modular arithmetic' functions, including a thread-safe version.

4. Implement the SPH algorithm for sr1sieve, and maybe sr2sieve. This will probably be version 2.x.x.

5. Make a multi-threaded version, maybe with a client/server setup for farms. This might be version 3.x.x

Last fiddled with by geoff on 2007-09-07 at 03:59 Reason: Not reading before posting
geoff is offline   Reply With Quote
Old 2007-09-07, 11:45   #360
Cruelty
 
Cruelty's Avatar
 
May 2005

23·7·29 Posts
Default

Thanks for update Geoff
All changes mentioned by you will be highly appreciated
Some more feature requests from me:
  • running as a native service under Windows (NT, 2000, XP, Vista)
  • GUI would be really cool
Of course I can live without those but it would be simply cool to have them
Cruelty is offline   Reply With Quote
Old 2007-09-11, 04:36   #361
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

13·89 Posts
Default sr2sieve 1.5.18

This version just adds some code to reset the FPU precision before use, it shouldn't be necessary on a properly functioning system, but it doesn't take any exra time to do.

There is a small improvement to the x86-64 mulmod, about 1% faster on Core 2 CPUs. Otherwise no need to upgrade.
geoff is offline   Reply With Quote
Old 2007-09-23, 21:21   #362
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

22058 Posts
Default sr2sieve/sr5sieve 1.5.19

This version fixes a bug introduced in version 1.4.27 that caused an error message at startup if the --pmax switch was used without the --pmin switch when the sieve file contained the start of the sieve range.

Version 1.6.x will be able to sieve b^n+/-k for use on the Dual-Sierpinski problem. Thanks Phil Moore for pointing out how little change was needed to make this work. There is an experimental version 1.6.0 for those interested, hopefully in a future version the code will be integrated into the standard sr2sieve binary so that b^n+/-k and k*b^n+/-1 can be sieved together.
geoff is offline   Reply With Quote
Old 2007-09-24, 21:13   #363
geoff
 
geoff's Avatar
 
Mar 2003
New Zealand

48516 Posts
Default sr2sieve 1.6.1

This version works with both forms k*b^n+/-1 and b^n+/-k together in the same sieve.

It doesn't appear to be any slower than 1.5.x when sieving k*b^n+/-1 alone, but if anyone notices a slowdown on their own hardware, please let me know.

(There are a number of extra branches in the code, but when all sequences in the sieve have the same form the branches are predictable).
geoff is offline   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:10 UTC 2021 up 10 days, 6:41, 0 users, load averages: 1.49, 1.53, 1.48

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.