mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-11-24, 18:46   #12
schickel
 
schickel's Avatar
 
"Frank <^>"
Dec 2004
CDP Janesville

212210 Posts
Default

Quote:
Originally Posted by rogue View Post
I've posted 1.0.1 here: http://home.roadrunner.com/~mrodenki...ieve_1.0.1.zip. The included build is for Win64. I can't test it as I don't have a Win64 box available to me.

The only change is to address sieving for p > 2^32. The other change will need to wait until next week.
I have access to a Vista and a 7 64-bit system, if you have a test case you want run.
schickel is offline   Reply With Quote
Old 2011-11-24, 20:40   #13
Phil MjX
 
Phil MjX's Avatar
 
Sep 2004

5·37 Posts
Default

Hello !


Still hangs for me at p>2^32 for me with the same test case and win64 1.0.1 binary...

But all is OK with the 32 bits binary and the speed is apparently not so different on my system !

Can I help you with other test cases ?


Thanks for the program,
Regards

Philippe

Last fiddled with by Phil MjX on 2011-11-24 at 20:41
Phil MjX is offline   Reply With Quote
Old 2011-11-24, 20:52   #14
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×32×353 Posts
Default

Quote:
Originally Posted by Phil MjX View Post
Still hangs for me at p>2^32 for me with the same test case and win64 1.0.1 binary...

But all is OK with the 32 bits binary and the speed is apparently not so different on my system !

Can I help you with other test cases ?
I can't look at it until next week.
rogue is offline   Reply With Quote
Old 2011-11-28, 19:33   #15
Phil MjX
 
Phil MjX's Avatar
 
Sep 2004

5×37 Posts
Default

Hi,

I haved finished a range up to 4e12 and have noticed a bug with version 1.01 (32 bits):

Code:
ABC 1*10^80+$a // Sieved to 4000000000003 with fnsieve
42
73
91
127
129
132
141
168
171
177
259
282
349
366
367
372
391
427
436
438
462
519
552
562
618
661
682
687
718...
In the result file, half of the candidates are even !

With version 1.00 64 bits, all is OK -at least up to 2^32!

Code:
ABC 1*10^80+$a // Sieved to 4294987951 with fnsieve
73
91
127
129
133
141
171
177
259
349
367
391
427
513
519
531
661
687
699
757...
Another point, in fnsieve.h, max p is 4e12+3.

Code:
/* If --pmax is not specified use pmax = pmin + DEFAULT_P_RANGE.
 */
#define DEFAULT_P_RANGE UINT64_C(4000000000000);
For prp'ing candidates, it is certainly more than enough, but in case of brilliant numbers search, I have reached the limit with a rate of 2s/candidate.

ECM up to 25 digits takes me 40 seconds so I'd like to increase pmax.

Is it possible without trashing everything ?


Kind regards
Philippe

Last fiddled with by Phil MjX on 2011-11-28 at 19:35 Reason: typos
Phil MjX is offline   Reply With Quote
Old 2011-11-28, 20:22   #16
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·32·353 Posts
Default

Use -P to override the max prime for sieving.

I just posted 1.0.2 here: http://home.roadrunner.com/~mrodenki...ieve_1.0.2.zip

It fixed the issue that was causing even values to not be sieved. It was also built on a 64-bit Windows machine, so it definitely goes above p = 2^32 without a problem.

Last fiddled with by rogue on 2011-11-28 at 20:48 Reason: fixed the link
rogue is offline   Reply With Quote
Old 2011-11-28, 20:46   #17
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29×41 Posts
Default

Correct link: http://home.roadrunner.com/~mrodenki...ieve_1.0.2.zip
smh is offline   Reply With Quote
Old 2011-11-28, 20:48   #18
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

18D216 Posts
Default

Quote:
Originally Posted by smh View Post
Thanks. Fixed the link above.
rogue is offline   Reply With Quote
Old 2011-11-28, 20:56   #19
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default Bug?

When I resume a sieve the results are not saved
Code:
Sieving 100000000 <= p <= 200000000 eliminated 1084 terms, 29479 remain.
Wrote 0 terms to file fn_1_10_99.pfgw.
fnsieve stopped: at p=200000000 because --pmax was reached.
smh is offline   Reply With Quote
Old 2011-11-28, 21:33   #20
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

143228 Posts
Default

Easy fix. I had a bug in a while loop.

I just posted 1.0.3 here: http://home.roadrunner.com/~mrodenki...ieve_1.0.3.zip
rogue is offline   Reply With Quote
Old 2011-12-20, 15:07   #21
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

2×3×7×23 Posts
Default

Could someone please build a Windows 32-bit version, such that I can test it. I would like to test it on the n=999999 b=10 k=1 test that I'm currently doing? Since I have no 64bit OS, my options and possibilities are limited.

Last fiddled with by KEP on 2011-12-20 at 15:08
KEP is offline   Reply With Quote
Old 2012-10-24, 00:34   #22
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·32·353 Posts
Default

I have posted an OpenCL version of fnsieve here.

Right now it just takes a sequence and a range of c and outputs factors regardless of whether one has already been found for that c. You will need to start with a larger prime when sieving, say 1e6 because of how I have it working right now. Smaller starting primes can crash the program. I'll fix that in the next release. I'll also have it read a pfgw file and output a pfgw file that will remove c for which a factor was found.

The GPU version is about 8x faster than the CPU version. It could potentially be faster, but the prime sieve is done in the CPU and that is the limiting factor. I recommend increasing the number of threads and the number of blocks to find an optimal rate. I had to use -t10 -b10000 to get 8x faster.
rogue is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 17:41.


Sun Aug 1 17:41:54 UTC 2021 up 9 days, 12:10, 0 users, load averages: 2.31, 1.86, 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.