mersenneforum.org  

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

Reply
 
Thread Tools
Old 2008-10-31, 19:18   #89
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

2×151 Posts
Default

Stop-on-prp files now available. Just add the -s switch and it will stop on the first prp.

--nuggetprime
Attached Files
File Type: gz phrot_sop.tar.gz (160.6 KB, 120 views)

Last fiddled with by nuggetprime on 2008-10-31 at 19:18
nuggetprime is offline   Reply With Quote
Old 2008-10-31, 19:27   #90
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

624910 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
I've managed to compile phrot myself on my quad and it seems to don't produce the reported errors.My version is also ~28 percent faster than Geoff's port.

--nuggetprime
Nice! I'll have to try timing it myself sometime soon.
mdettweiler is offline   Reply With Quote
Old 2008-10-31, 20:07   #91
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

143138 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
Stop-on-prp files now available. Just add the -s switch and it will stop on the first prp.

--nuggetprime
Can you send me the change that you made? I'll make sure that I include it in the version I have.

What I really would like to do next in phrot is to save checkpoint information so that tests can be stopped and re-started. I haven't had the time to work on it, but if someone else wants to attempt that, they are free to do so.
rogue is offline   Reply With Quote
Old 2008-11-05, 23:34   #92
Cruelty
 
Cruelty's Avatar
 
May 2005

65816 Posts
Default

Quote:
Originally Posted by nuggetprime View Post
I've managed to compile phrot myself on my quad and it seems to don't produce the reported errors.My version is also ~28 percent faster than Geoff's port.
From what I see there are only Linux versions... or am I missing something?
Cruelty is offline   Reply With Quote
Old 2008-11-06, 03:42   #93
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11·577 Posts
Default

I have finally added checkpointing to phrot and support for -s (stopOnPRP). Checkpointing means that phrot will write the current data to disk when during a test. When restarting, phrot will then restart from where it last checkpointed. This will be very helpful when running long tests and you need to shutdown or restart your computer and don't want to have to start a test from the beginning.

I have attached the sources for phrot 0.52. If anyone runs into any issues, please let me know.
Attached Files
File Type: zip phrot_src.zip (20.5 KB, 113 views)
rogue is offline   Reply With Quote
Old 2008-11-06, 09:25   #94
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

23×3×112 Posts
Default

can anyone compile this version on WIN-platform and attach the exe here? thanks
kar_bon is offline   Reply With Quote
Old 2008-11-06, 13:30   #95
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11×577 Posts
Default

Quote:
Originally Posted by kar_bon View Post
can anyone compile this version on WIN-platform and attach the exe here? thanks
You can d/l a P3 build with CygWin from here. This build is also tuned for Core 2 Duo

Last fiddled with by rogue on 2008-11-06 at 13:30
rogue is offline   Reply With Quote
Old 2008-11-06, 22:58   #96
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

1011001001002 Posts
Default

Quote:
Checkpointing means that phrot will write the current data to disk when during a test. When restarting, phrot will then restart from where it last checkpointed. This will be very helpful when running long tests and you need to shutdown or restart your computer and don't want to have to start a test from the beginning.
Does this include not having to worry about the residuals file? I've messed that up more than once, forgetting to save the contents before restarting.
MyDogBuster is offline   Reply With Quote
Old 2008-11-06, 23:52   #97
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11×577 Posts
Default

Quote:
Originally Posted by MyDogBuster View Post
Does this include not having to worry about the residuals file? I've messed that up more than once, forgetting to save the contents before restarting.
What do you mean?
rogue is offline   Reply With Quote
Old 2008-11-06, 23:54   #98
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

11000011010012 Posts
Default

Quote:
Originally Posted by MyDogBuster View Post
Does this include not having to worry about the residuals file? I've messed that up more than once, forgetting to save the contents before restarting.
Actually, for a while there's been an option to have Phrot output the results to results.out, no fancy output redirection stuff necessary. Simply run "phrot -b=3 -o" to have it produce LLR residuals and output it all to the file results.out.

Another option is to redirect the output to a file as before, but use ">>" instead of ">"--i.e., append to the output file instead of overwriting it.
mdettweiler is offline   Reply With Quote
Old 2008-11-07, 00:04   #99
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

143138 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
Actually, for a while there's been an option to have Phrot output the results to results.out, no fancy output redirection stuff necessary. Simply run "phrot -b=3 -o" to have it produce LLR residuals and output it all to the file results.out.

Another option is to redirect the output to a file as before, but use ">>" instead of ">"--i.e., append to the output file instead of overwriting it.
Definitely use -o if saving the residuals.

The -s option is also useful for the Conjectures 'R Us project. Here is how you can do it.
  1. Take the sieve output file containing multiple k's
  2. Use srfile to save each k to its own file
  3. Write a shell script (or .bat file) with the following contents:
    • phrot.p3 -b3 -o -s k12345.in
    • rm phrot.ini
    • phrot.p3 -b3 -o -s k56789.in
    • rm phrot.ini
    • etc.
  4. Run the script

phrot will stop testing each file when the first prime is found or when it finishes processing the file, whichever comes first. All primes will be in Phrot.prp. All residuals will be in results.out.

I have been thinking about modifying phrot so that if k or b is a power of 2 that it will not perform the test unless using the error checking version. Does anyone have a strong opinion on that?
rogue is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
PRPNET & Phrot discussion masser Sierpinski/Riesel Base 5 27 2010-09-08 03:10
Phrot announcements rogue Conjectures 'R Us 33 2010-01-22 19:39
LLR/PRP/phrot/pfgw:- Pick A Range masser Sierpinski/Riesel Base 5 8 2009-08-18 19:44
Using Phrot For LLRNET Reservations thommy Sierpinski/Riesel Base 5 1 2008-11-03 14:53
Programmer needed to write networked Phrot app! mdettweiler Programming 0 2008-04-07 21:25

All times are UTC. The time now is 09:15.


Sat Jul 17 09:15:12 UTC 2021 up 50 days, 7:02, 1 user, load averages: 1.42, 1.63, 1.60

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.