![]() |
|
|
#1 |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
141518 Posts |
Not long ago, version 25.11 of the gwnum math library, utilized by LLR, PRP, PFGW, and Prime95, was released. This new release includes optimizations for non-base-2 numbers that will significantly benefit this project!
PFGW v3.1.0 and Prime95 v25.11, which both utilize the new math library, can now do PRP tests significantly faster than either LLR or Phrot. LLR will probably be updated sometime in the near future, though in the meantime, Prime95 and PFGW (which both produce residuals compatible with LLR and Phrot's) are the way to go for testing non-power-of-2 numbers. Note that version 3.1.0 of PFGW has a bug in which the first character of the residue is produced incorrectly. This is because PFGW produces 62-bit residues, not 64-bit like LLR, Phrot, and Prime95. Yet, for compatibility with those programs, PFGW outputs a 16-character (64-bit) residue nonetheless. This results in the first character being incorrect, which can cause problems when the residues are compared with true 64-bit ones. PRPnet's built-in doublechecking functionality is aware of this bug, and ignores the first character when comparing residues. However, since we don't use PRPnet's built-in doublechecking functionality here at CRUS (instead doing second-pass tests separately from first-pass tests when they are needed), this won't help us. Mark Rodenkirch (rogue), who is leading the PFGW development effort, said that the next release of PFGW will have true 64-bit residues. Until that is released, though, we should try to avoid using PFGW for testing on CRUS, since it may impact possible future doublechecking efforts. If you must use it, please be sure to note this when posting your results (just like you would if, say, you forgot to run Phrot with the -b=3 option enabled to produce LLR-compatible residues). In the meantime, though, Prime95 (mprime on Linux) handles PRP tests quite nicely and with the same speed, yet without the residue bug. I've been testing it recently on some Riesel base 94 numbers, and the speed increase is enormous--approximately 3 times faster for most bases! Thus, I highly recommend that CRUS members start using it for non-power-of-2 PRP tests (at least until LLR is also updated to accomodate the new math library). Prime95 v25.11 can be downloaded from this thread: http://www.mersenneforum.org/showthread.php?t=12155 PFGW 3.1.0 can be downloaded from this thread: http://www.mersenneforum.org/showthread.php?t=12134 One disadvantage of Prime95, though (at least for the purposes of this project), is that it doesn't accept NewPGen- or ABC-formatted input files. Sieved candidates must be formatted in Prime95's proprietary worktodo.txt format. This cannot be done directly with srfile, though srfile can produce worktodo.txt format entries for performing P-1 testing through Prime95. The P-1 lines can be modified somewhat easily with a text editor to be used for PRP testing as follows: -Run srfile on a sieve file of any srfile-supported format, with the following command: srfile -p 1 sieve-file.txt >> worktodo.txt srfile will output a file worktodo.txt with entries like this (example from the Riesel base 3 mini-drive): Pfactor=17589196,3,78001,-1,37,1 All of the lines in the file should have the ",37,1" section at the end. (Note: the 37 may be something different depending on the sieve depth, since it represents the approximate sieve depth in power of 2. The above example is for 2^37. Use the number that you see in the file for the rest of these steps.) Now, use a text editor (such as Notepad or Wordpad) to search/replace for the string "Pfactor" and replace it with "PRP". After you've done that, do the same for the string ",37,1" and replace it with "" (i.e. a blank string). Now your lines should look like this: PRP=17589196,3,78001,-1 Now your worktodo.txt file is all set to be run through Prime95. To set up and use Prime95, do the following: -Download the appropriate version of Prime95 (32-bit or 64-bit) from the thread linked above. -Extract the downloaded .zip file to a new folder. -Run Prime95.exe. -It will ask you whether you want to join GIMPS, or if you want to use Prime95 just for stress testing. Choose "just stress testing"; that will tell Prime95 not to talk to the PrimeNet server or ask you to enter a GIMPS user ID, which is what you want for CRUS PRP testing. -It will then ask you to input stress test parameters. Click Cancel. -Prime95 is a lot like LLR, except a bit more complex: it has various additional features, such as multi-threading. (LLR is based on an earlier version of Prime95, v24.14, which is even closer to LLR in appearance and behavior.) -In Options>Preferences, you can adjust many of the same options as you can with LLR. The only ones you might want to adjust are "iterations between screen output" and "minutes between writing save files". Those options are just the same as they are in LLR. -Once you're satisfied with everything you've set up, make sure worktodo.txt is in place in your Prime95 folder with the work you want to run. -Now click Test>Continue to begin work. (Just like with LLR.) Prime95 will output your test status on the second subwindow ("Worker #1"). (The top subwindow is mainly for PrimeNet communication info, which is not applicable for non-GIMPS uses of Prime95.) -Results will be outputted to results.txt. Note: since the copy of Prime95 you just set up is configured for non-GIMPS manual testing, you may want to merge all of the subwindows into one, since the upper one is primarily for PrimeNet communications info, which does not apply to this use of the program. To merge all the subwindows into one, click Window, and choose "Merge Main and Comm and Worker". You may also want to maximize the one remaining subwindow so it fills the entire Prime95 window. If you've got any further questions on how to use Prime95, just post here and I'll answer as soon as I get the chance. ![]() Max
Last fiddled with by mdettweiler on 2009-07-18 at 00:46 |
|
|
|
|
|
#2 | |||
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
Quote:
Quote:
Quote:
If you check the second item under the Window menu, the Main and Comm windows will merge with the first worker, so you don't see them. Last fiddled with by Mini-Geek on 2009-07-17 at 11:29 |
|||
|
|
|
|
|
#3 | ||||
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3×2,083 Posts |
Quote:
Quote:
Quote:
StressTester=0 UsePrimenet=0 UsePrimenet=0 should already be set if you originally set up Prime95 in stress testing mode. What this combination of options does is set Prime95 to "GIMPS mode" (so that multithreading is available), but it won't grab work from the PrimeNet server so the effect is essentially the same as stress testing mode. This is how my client is set up. I didn't use this configuration in my instructions, though, since some people might find the whole idea of editing the prime.txt file confusing. ![]() Quote:
|
||||
|
|
|
|
|
#4 | ||
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
10000101010112 Posts |
Quote:
Quote:
In more words: If you set up the worktodo.txt file appropriately before running Prime95, then run it, choose Just Stress Testing, click Cancel, and press Test > Continue... then it will set StressTester=1 UsePrimenet=0 and your tests will automatically resume when you start Prime95. Maybe it's different in mprime, which you're probably using since you use Linux. Ok, do you think it could fit well in the first post so others can see that too? |
||
|
|
|
|
|
#5 | ||
|
A Sunny Moo
Aug 2007
USA (GMT-5)
141518 Posts |
Quote:
Quote:
|
||
|
|
|
|
|
#6 | |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17×251 Posts |
Quote:
To see it, run Prime95 from an empty folder. It will open like it's the first time, and you can see for yourself. |
|
|
|
|
|
|
#7 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
3·2,083 Posts |
Quote:
I'll remove the tidbit from the first post about multithreading not being available in stress testing mode, since that was most definitely proven wrong.
|
|
|
|
|
|
|
#8 |
|
May 2005
162410 Posts |
Just a quick benchmark using LLR:
Code:
4421*10^228022-1 is not prime. RES64: 56DAA17A59780CCB. OLD64: 048FE46F0C68265F Time : 3631.383 sec. 75% speed improvement? How is that possible???BTW: the only thing I miss in Prime95 is the actual time the test took to complete. |
|
|
|
|
|
#9 | |
|
A Sunny Moo
Aug 2007
USA (GMT-5)
11000011010012 Posts |
Quote:
PFGW does output its test times, so even if its residues are slightly off, it's still quite useful for getting benchmark data since its times should be the same as Prime95's. |
|
|
|
|
|
|
#10 |
|
Apr 2008
Antwerp, Belgium
3·19 Posts |
This is indeed a very nice improvement and makes proving some of these conjectures a bit more realistic. It also means I probly have sieved some of my work quite a bit. Some questions about prime95 though:
Should I worry about this bug: Some non-base-2 numbers get roundoff errors because of poor FFT length selection. Examples include: 211*210^2047-1, 211*210^2687-1, 211*210^7679-1. Fixed in 25.12. Is there a way to assign one big batch of work to all your workers without doing some copy-paste work and estimate the time needed for each batch? I also saw prime95 sometimes uses an all-complex FFT length for some n and uses a zero padded FFT length for some other n pretty randomly. Should I worry about that? The result file seems to be pretty messy (all workers results are put in the same file, time codes and check in between and so on). Is there an easy way to clean this file and sort all pairs by n? Last fiddled with by MrOzzy on 2009-07-21 at 13:18 |
|
|
|
|
|
#11 | ||||
|
P90 years forever!
Aug 2002
Yeehaw, FL
22·7·269 Posts |
Quote:
Quote:
Quote:
Quote:
|
||||
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multithreaded PFGW | IBethune | Software | 5 | 2018-03-16 17:52 |
| PFGW GUI vs CMD | houding | Software | 1 | 2016-06-20 12:11 |
| llr, pfgw and prime95 choose different FFT for same number, why? | MrRepunit | Software | 10 | 2012-02-05 22:31 |
| PFGW 3.3.6 or PFGW 3.4.2 Please update now! | Joe O | Sierpinski/Riesel Base 5 | 5 | 2010-09-30 14:07 |
| PFGW 3.2.0 has been Released | rogue | Software | 94 | 2010-09-14 21:39 |