mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-10-01, 02:02   #34
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22×3×523 Posts
Default

I have re-released the OS X build of PFGW 3.4.0. Apparently the 32-bit version has problems with the static-linked GMP and the 64-bit version wasn't working correctly. I suspect a linker bug in the one case and a compiler bug in the other as the other. For the 64-bit version I didn't use any optimizations with PFGW itself (gwnum and GMP are still optimized) and it is appears to be faster.

I'm very close to having a 64-bit linux build posted. Hopefully tomorrow.
rogue is offline   Reply With Quote
Old 2010-10-01, 04:45   #35
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3×2,083 Posts
Default

Okay, I've tried testing 289184*5^477336-1 with both LLR 3.8.1 and 3.8.2 to see if the mysterious slowdown exists in LLR as well.
Code:
$ ./cllr381.exe -d -q289184*5^477336-1
Base prime factor(s) taken : 5
Starting N+1 prime test of 289184*5^477336-1
Using zero-padded FFT length 128K, a = 3

289184*5^477336-1 is not prime.  RES64: 08B0E31C3A9EFF00.  OLD64: 077A0603FB8C61BF  Time : 3958.254 sec.
 
$ ./cllr.exe -d -q289184*5^477336-1
Base prime factor(s) taken : 5
Starting N+1 prime test of 289184*5^477336-1
Using zero-padded Core2 type-3 FFT length 128K, Pass1=128, Pass2=1K, a = 3

289184*5^477336-1 is not prime.  RES64: 08B0E31C3A9EFF00.  OLD64: 077A0603FB8C61BF  Time : 3858.415 sec.
Oddly enough, LLR did turn out to be faster by a significant amount. (That'll teach me to use 20 seconds' worth of ms/iter. figures as data points. )

Next, I'll repeat the test with Prime95 25.11 and 26.2 to see whether it has a slowdown or not.
mdettweiler is offline   Reply With Quote
Old 2010-10-01, 12:42   #36
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22·3·523 Posts
Default

A 64-bit Linux build is finally available thanks to Steven Harvey. You can d/l the latest releases from here.
rogue is offline   Reply With Quote
Old 2010-10-11, 23:58   #37
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

70418 Posts
Default

I get an error with Debian running pfgw64 testing 100000000000*2731#+1

Code:
-----------------------------------------------------------------------
Error occuring in PFGW at Tue Oct 12 00:56:51 2010
Expr = 100000000000*2731#+1
Detected in gw_test_illegal_sumout() in prp_using_gwnum
Iteration: 1/3911 ERROR: ILLEGAL SUMOUT
PFGW will automatically rerun the test with -a1
-----------------------------------------------------------------------
Error occuring in PFGW at Tue Oct 12 00:56:51 2010
Expr = 100000000000*2731#+1
Detected in gw_test_illegal_sumout() in prp_using_gwnum
Iteration: 1/3911 ERROR: ILLEGAL SUMOUT
PFGW will automatically rerun the test with -a2
-----------------------------------------------------------------------
Error occuring in PFGW at Tue Oct 12 00:56:51 2010
Expr = 100000000000*2731#+1
Detected in gw_test_illegal_sumout() in prp_using_gwnum
Iteration: 1/3911 ERROR: ILLEGAL SUMOUT
PFGW will automatically rerun the test with -a3
-----------------------------------------------------------------------
Error occuring in PFGW at Tue Oct 12 00:56:51 2010
Expr = 100000000000*2731#+1
Detected in gw_test_illegal_sumout() in prp_using_gwnum
Iteration: 1/3911 ERROR: ILLEGAL SUMOUT
PFGW will automatically rerun the test with -a4
-----------------------------------------------------------------------
Error occuring in PFGW at Tue Oct 12 00:56:51 2010
Expr = 100000000000*2731#+1
Detected in gw_test_illegal_sumout() in prp_using_gwnum
Iteration: 1/3911 ERROR: ILLEGAL SUMOUT
PFGW will automatically rerun the test with -a5
-----------------------------------------------------------------------
Error occuring in PFGW at Tue Oct 12 00:56:51 2010
Expr = 100000000000*2731#+1
Detected in gw_test_illegal_sumout() in prp_using_gwnum
Iteration: 1/3911 ERROR: ILLEGAL SUMOUT
PFGW will automatically rerun the test with -a6
pfgw32 is okay on the same 64 bit Debian box

Last fiddled with by paulunderwood on 2010-10-12 at 00:06
paulunderwood is offline   Reply With Quote
Old 2010-10-12, 02:23   #38
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

627610 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
I get an error with Debian running pfgw64 testing 100000000000*2731#+1

pfgw32 is okay on the same 64 bit Debian box
George is aware of the problem (linux 64-bit only) and has a fix. I'll be building a new release with gwnum v26.3 in the next week.
rogue is offline   Reply With Quote
Old 2010-10-16, 17:12   #39
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

3×1,951 Posts
Default

I started running some base 3 work and got this:
Code:
PFGW Version 3.4.1.64BIT.20100927.Win_Dev [GWNUM 26.2]

Factoring numbers to 100% of normal.

Script File
trial factoring to 49598
820000000*3^1-1 factors prime!: 2459999999
Primality testing 820000002-1 [N-1/N+1, Brillhart-Lehmer-Selfridge]
small number, factored
820000002-1 is factored (0.0005s+0.0085s)
trial factoring to 49598
820000004*3^1-1 has factors: 7
trial factoring to 65536
820000004*3^2-1 has factors: 5
trial factoring to 65536
Switching to Exponentiating using GMP
820000004*3^3-1 is 3-PRP! (0.0001s+0.0053s)
Primality testing 820000004*3^3-1 [N+1, Brillhart-Lehmer-Selfridge]
trial factoring to 65536
Running N+1 test using discriminant 5, base 1+sqrt(5)
Error 1002 initializing FFT code:
The 32 bit binary works fine.
henryzz is offline   Reply With Quote
Old 2010-10-18, 00:10   #40
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

188416 Posts
Default

Quote:
Originally Posted by henryzz View Post
I started running some base 3 work and got this:
Code:
PFGW Version 3.4.1.64BIT.20100927.Win_Dev [GWNUM 26.2]

Factoring numbers to 100% of normal.

Script File
trial factoring to 49598
820000000*3^1-1 factors prime!: 2459999999
Primality testing 820000002-1 [N-1/N+1, Brillhart-Lehmer-Selfridge]
small number, factored
820000002-1 is factored (0.0005s+0.0085s)
trial factoring to 49598
820000004*3^1-1 has factors: 7
trial factoring to 65536
820000004*3^2-1 has factors: 5
trial factoring to 65536
Switching to Exponentiating using GMP
820000004*3^3-1 is 3-PRP! (0.0001s+0.0053s)
Primality testing 820000004*3^3-1 [N+1, Brillhart-Lehmer-Selfridge]
trial factoring to 65536
Running N+1 test using discriminant 5, base 1+sqrt(5)
Error 1002 initializing FFT code:
The 32 bit binary works fine.
I'll see if that is fixed wit gwnum v26.3.
rogue is offline   Reply With Quote
Old 2010-10-18, 13:15   #41
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

142048 Posts
Default

Quote:
Originally Posted by rogue View Post
I'll see if that is fixed wit gwnum v26.3.
Works with the latest gwnum.
rogue is offline   Reply With Quote
Old 2010-10-19, 05:15   #42
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

11000011010012 Posts
Default

I just upgraded my quad to PFGW 3.4.0 (32-bit) and am pleased to say that I got a very nice 25% (!) speed boost over 3.3.6! Tests that took about 1630 seconds on 3.3.6 are now taking 1230 seconds. This is on base 6, near n=350K; I also get a speedup of similar magnitude with LLR 3.8.2 (vs. 3.8.0) on base 2 numbers around n=920K. It would seem that this CPU (Intel Q6600) benefits particularly well from the improvements in gwnum v26.

BTW @Mark and George: my apologies for not getting back to you sooner regarding my testing Prime95 on my dualcore to see if the mysterious base 5 slowdown occurs in there as well. As detailed in tests that I've already posted earlier in this thread, the slowdown going from gwnum v25>26 occurred in PFGW but not LLR; I'll try Prime95 as soon as I get the chance.

Last fiddled with by mdettweiler on 2010-10-19 at 05:18
mdettweiler is offline   Reply With Quote
Old 2010-10-21, 02:39   #43
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22×3×523 Posts
Default PFGW 3.4.2 Released

You can d/l the latest release for Windows, MacIntel, and Linux from here: http://sourceforge.net/projects/openpfgw/

The changes include:
  • Updated to gwnum v26.4 to fix various issues, including one on 64-bit Linux and one with 64-bit builds on zero-padded two pass rational FFTs.
  • Addressed many compiler warnings when building with gcc.
  • Added carriage return after "GFN testing completed" message in pfgw.log.
  • Remove ability to change CPU setting via pfgw.ini. gwnum should be smarter than any user when specifying the CPU settings. This also addresses a crash that occurs on MacIntel during primality proofs as the SSE2 flag was turned off which told gwnum to execute non-SSE2 code, which isn't built into gwnum on MacIntel (Apple only supports Core 2 and later CPUs on MacIntel).
rogue is offline   Reply With Quote
Old 2010-10-21, 11:18   #44
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,617 Posts
Default



Would it be possible to have "static" versions to overcome some problems? Please see: http://tech.groups.yahoo.com/group/p.../message/10725

Last fiddled with by paulunderwood on 2010-10-21 at 11:24
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
A possible bug in LLR/PFGW while using GWNUM (no bug in P95) Batalov Software 77 2015-04-14 09:01
PFGW 3.2.0 has been Released rogue Software 94 2010-09-14 21:39
PFGW 3.2.3 has been Released rogue Software 10 2009-10-28 07:07
PFGW 3.2.2 has been Released rogue Software 20 2009-08-23 12:14
PFGW 3.2.1 has been released rogue Software 5 2009-08-10 01:43

All times are UTC. The time now is 04:47.

Mon Apr 12 04:47:00 UTC 2021 up 3 days, 23:27, 1 user, load averages: 1.66, 1.69, 1.83

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.