mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing > GpuOwl

Reply
Thread Tools
Old 2019-11-30, 04:13   #1486
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

2·1,579 Posts
Default

How do you specify PRP type in gpuOwL ?

Just finished my first gpuowl test using Google Colab, but it was a PRP DC and forgot to think of the PRP type, so it finished the wrong type:
https://mersenne.org/M87000929

I found a type 1 result to DC for the next one, so that should be ok, but how do I choose the type? It is fixed in the different versions which type it uses?

Could I continue from the last savefile of 87000929 and finish it as a type 4 if the difference
between types is only at the end?
According to undoc.txt from Prime95:
type 1: a^(n-1)
type 4: a^((n+1)/2)
ATH is online now   Reply With Quote
Old 2019-11-30, 04:49   #1487
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23·271 Posts
Default

Quote:
Originally Posted by ATH View Post
How do you specify PRP type in gpuOwL ?

Just finished my first gpuowl test using Google Colab, but it was a PRP DC and forgot to think of the PRP type, so it finished the wrong type:
https://mersenne.org/M87000929

I found a type 1 result to DC for the next one, so that should be ok, but how do I choose the type? It is fixed in the different versions which type it uses?

Could I continue from the last savefile of 87000929 and finish it as a type 4 if the difference
between types is only at the end?
According to undoc.txt from Prime95:
type 1: a^(n-1)
type 4: a^((n+1)/2)
Pretty sure the prp type is hard fixed, but gpuowl has changed types several times in the past... Savefiles, I'm not sure.
Quote:
Originally Posted by storm5510 View Post
I have two caveats:

#1: The screen writes could to be more frequent. It appears to be 10,000 iterations, or 10,000 something. With my vision being what it is, I walk by the screen and wonder if it is still running, or if it has frozen. Allow the user to decide by making this a config.txt option. Being an antique programmer, I understand there may be some effort involved.

#2: For every exponent ran, a folder containing checkpoint information is created, but not deleted after completion of the test. The housekeeping could be better.

Other than these, I feel gpuOwl does a really good job. I have only ran P-1's with it. Stage 2 is far faster than any of the other programs I have used.
#1- You can use -log... but it's the opposite to what you want, it slows down the output to a multiple of 10000(last i recall)... If you use windows, you can get something like GPU-Z to see gpu usage percentages- to see if it's actually working the gpu...

#2- So much yes... I run gpuowl from google drive and running P-1 I run out of space so fast and have to manually delete them.... I realize I can make a script... whenever I feel like it
kracker is offline   Reply With Quote
Old 2019-11-30, 20:05   #1488
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

13×151 Posts
Default

Quote:
Originally Posted by kracker View Post
#1- You can use -log... but it's the opposite to what you want, it slows down the output to a multiple of 10000(last i recall)... If you use windows, you can get something like GPU-Z to see gpu usage percentages- to see if it's actually working the gpu...
The output is in multiples of 10,000 now so there is not much point of messing with that.

It is working the GPU, to a point. I have an gadget, image snip below, that sits in the upper-right corner of the screen. It displays the GPU temperature, among other things. Idle is around 30°C. GPU-Z says a 100% load. The GPU temperature shown in the gadget is with gpuOwl running on a large P-1.
Attached Thumbnails
Click image for larger version

Name:	dongle.JPG
Views:	70
Size:	18.4 KB
ID:	21372  
storm5510 is offline   Reply With Quote
Old 2019-12-01, 04:02   #1489
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

226778 Posts
Default

Quote:
Originally Posted by R. Gerbicz View Post
And have you ever found a mismatch in the residues?
Not with the new Gerbicz/PRP tests. I will let you know for sure! hehe.... But currently, I still use the ol'good cudaLucas with no such improvements, and with residue as part of the file name, and use a batch to check, and yes, sometimes cosmic rays have bad habit of nesting exactly inside of my computers! In that case, both instances will retry from the last good checkpoint. See my posts about M666666667 here around, which had to resume few times during the test.

Last fiddled with by LaurV on 2019-12-01 at 04:05
LaurV is offline   Reply With Quote
Old 2019-12-01, 08:28   #1490
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3·457 Posts
Default

Quote:
Originally Posted by ATH View Post
How do you specify PRP type in gpuOwL ?
It's not settable, it depends on the version. The current version is type-1, and there aren't plans to change that anymore.
Quote:
Could I continue from the last savefile of 87000929 and finish it as a type 4 if the difference
between types is only at the end?
According to undoc.txt from Prime95:
type 1: a^(n-1)
type 4: a^((n+1)/2)
They may be compatible. You're right the change between types is only at the end, but there are small differences between savefile (unrelated to type). Anyway, if gpuowl can't load the savefile it won't (i.e. it's safe to try); it may also be possible to manually "massage" the savefiles carefully, but probably not worth the effort. Not too risky for data corruption in the process as it is validated on load.

PS: all GpuOwl's savefile have a text header of *one line*, followed by binary. E.g. on Linux you can see the header like this:
head -1 savefile.owl
If the binary part is perfectly preserved, the text header could be altered, but the editor would need to not mess around with the binary.

Last fiddled with by preda on 2019-12-01 at 08:31
preda is offline   Reply With Quote
Old 2019-12-01, 14:24   #1491
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

315810 Posts
Default

Which version was the last to use type 4 ?

This is a problem for future PRP DC, that people need specific knowledge to be able to DC them.
I should have been experienced enough to think about this, but I forgot. Many other users will not even know about the different types.

I assume Prime95/mprime can DC gpuowl results if the type is the same? Hopefully primenet sets type 4 automatically when needed.

Last fiddled with by ATH on 2019-12-01 at 15:43
ATH is online now   Reply With Quote
Old 2019-12-01, 15:51   #1492
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

2×1,579 Posts
Default

Anyone with an old working gpuowl version that uses type 4 PRP tests want to try and finish this test as a type 4?
http://mersenne.org/M87000929

I have the savefiles after 86750000 and 87000000 iterations.
ATH is online now   Reply With Quote
Old 2019-12-02, 00:06   #1493
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

19·397 Posts
Default

@preda: Any particular reason the -block command line argument is no longer available?
Prime95 is offline   Reply With Quote
Old 2019-12-02, 03:34   #1494
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

19·397 Posts
Default

@preda; ./gpuowl -pm1 2000003

fails
Prime95 is offline   Reply With Quote
Old 2019-12-02, 11:54   #1495
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3·457 Posts
Default

Quote:
Originally Posted by Prime95 View Post
@preda; ./gpuowl -pm1 2000003

fails
Thanks, I just fixed a problem with a timer, which was causing too frequent saves (in P-1). Other than that (rather severe problem), it seems to run correctly. How was it failing for you? is it still failing?
preda is offline   Reply With Quote
Old 2019-12-02, 12:22   #1496
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

3×457 Posts
Default

Quote:
Originally Posted by Prime95 View Post
@preda: Any particular reason the -block command line argument is no longer available?
I re-enabled it for now, as I think I don't have a very strong reason to disable it yet.

I think that a block-size of 400 is a rather nice and overall good value (note, this is a bit smaller than the old default of 500). Why do you need a custom block-size, and to what value do you usually set it to?

As I have 2 GPUs (an XFX and an Asrock) that sometimes generate errors (about 1-2 per day), I come to appreciate a smaller block size, and I added a bit of logic to adaptivelly vary the default check-step depending on the number of errors up to now, by starting with a check-step of 200'000, and roughly halving it for each additional error up to 20'000.

And there is one more reason for the smallish block-size: relative to the PRP-proof (future), the plan right now is to have the proof cover (for exponent E) a region from beginning up to an iteration that is a multiple of 1024 * block-size (such that any halving step in this region hits a block-size boundary and can be checked). This leaves a "tail" of up to 1024 * blockSize iterations at the end that are not covered by the proof, and that will need to be re-run by the checker, thus it's good for the tail to not be too large.

Last fiddled with by preda on 2019-12-02 at 12:24
preda is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mfakto: an OpenCL program for Mersenne prefactoring Bdot GPU Computing 1676 2021-06-30 21:23
GPUOWL AMD Windows OpenCL issues xx005fs GpuOwl 0 2019-07-26 21:37
Testing an expression for primality 1260 Software 17 2015-08-28 01:35
Testing Mersenne cofactors for primality? CRGreathouse Computer Science & Computational Number Theory 18 2013-06-08 19:12
Primality-testing program with multiple types of moduli (PFGW-related) Unregistered Information & Answers 4 2006-10-04 22:38

All times are UTC. The time now is 07:16.


Fri Aug 6 07:16:11 UTC 2021 up 14 days, 1:45, 1 user, load averages: 3.25, 2.96, 2.78

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.