mersenneforum.org  

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

Reply
Thread Tools
Old 2019-02-07, 10:34   #991
SELROC
 

110111010112 Posts
Default

Quote:
Originally Posted by preda View Post
Should it stop afterwards? (ignoring worktodo.txt)

Yes. This is only meant for quick testing and validating.
  Reply With Quote
Old 2019-02-07, 13:36   #992
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

5,437 Posts
Default

Quote:
Originally Posted by SELROC View Post
I have been thinking and rethinking on this: a command line argument to specify the exponent to compute. That is may be "-c <number>" should start gpuowl and compute <number>. It could be useful.
Maybe call it -exp. Or something that distinguishes it as PRP3 as opposed to P-1 (-pm1)? -c might be confused with -cpu.

I'd like to see either at command line or worktodo entry (both choices would be nice but maybe not a good use of Mihai's time budget) an option to do -iters (number). If I had to pick one, I'd choose command line. The combination of SELROC's suggestion plus -iters would make benchmarking the various fft lengths for a given gpu model much easier. As is, I find myself babysitting it. Mlucas and prime95 have the -iters feature.

An option on worktodo entries -fft +(number) or -(number)would be useful. As is, a worktodo file can't efficiently mix exponents of different fft list offset.

Also if there's an issue with one worktodo entry instead of quitting, continue to the next.
Openowl could modify the trouble assignment to be a comment, then rescan the file for input.

Last fiddled with by kriesel on 2019-02-07 at 13:43
kriesel is offline   Reply With Quote
Old 2019-02-07, 15:25   #993
SELROC
 

127138 Posts
Default

Quote:
Originally Posted by kriesel View Post
Maybe call it -exp. Or something that distinguishes it as PRP3 as opposed to P-1 (-pm1)? -c might be confused with -cpu.

I'd like to see either at command line or worktodo entry (both choices would be nice but maybe not a good use of Mihai's time budget) an option to do -iters (number). If I had to pick one, I'd choose command line. The combination of SELROC's suggestion plus -iters would make benchmarking the various fft lengths for a given gpu model much easier. As is, I find myself babysitting it. Mlucas and prime95 have the -iters feature.

An option on worktodo entries -fft +(number) or -(number)would be useful. As is, a worktodo file can't efficiently mix exponents of different fft list offset.

Also if there's an issue with one worktodo entry instead of quitting, continue to the next.
Openowl could modify the trouble assignment to be a comment, then rescan the file for input.



Mfakto has the argument -tf <exp> <bitmin> <bitmax>
it ignores the worktodo file, so for consistency with mfakto:


openowl -prp <exp> ...
  Reply With Quote
Old 2019-02-07, 20:44   #994
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

124758 Posts
Default

Quote:
Originally Posted by SELROC View Post
Mfakto has the argument -tf <exp> <bitmin> <bitmax>
it ignores the worktodo file, so for consistency with mfakto:

openowl -prp <exp> ...
Makes sense.
openowl -pm1 <exp> -B1 <b1bound> -B2 <b2bound>

Last fiddled with by kriesel on 2019-02-07 at 20:44
kriesel is offline   Reply With Quote
Old 2019-02-08, 06:53   #995
SELROC
 

22×3×241 Posts
Default

Quote:
Originally Posted by kriesel View Post
Makes sense.
openowl -pm1 <exp> -B1 <b1bound> -B2 <b2bound>

the -B1 and -B2 are not strictly necessary:


openowl -pm1 <exp> <b1bound> <b2bound>
  Reply With Quote
Old 2019-02-08, 06:57   #996
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

5,437 Posts
Default

Quote:
Originally Posted by SELROC View Post
the -B1 and -B2 are not strictly necessary:

openowl -pm1 <exp> <b1bound> <b2bound>
True. I think it would be easier to read though with them. It also maintains a symmetry in parsing; one field identifier, one value, rather than one with 3 parameters and order-sensitive.
kriesel is offline   Reply With Quote
Old 2019-02-08, 07:43   #997
SELROC
 

11·23·31 Posts
Default

Quote:
Originally Posted by kriesel View Post
True. I think it would be easier to read though with them. It also maintains a symmetry in parsing; one field identifier, one value, rather than one with 3 parameters and order-sensitive.

Let preda decide on this, but I am just curious what you have against order-sensitive arguments :-)
  Reply With Quote
Old 2019-02-08, 09:39   #998
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

33B16 Posts
Default

How it typically works is that an op has either nothing or one string attached to it. This makes arg parsing a doddle with something like getopt, which easily allows defining a short and long version of an op like -h and --help. Personally I'd convert the arg parsing to getopt and do "openowl --pm1 <exp>,<b1bound>,<b2bound>" assuming the bounds are only used with pm1.
M344587487 is offline   Reply With Quote
Old 2019-02-08, 09:46   #999
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

55B16 Posts
Default

Quote:
Originally Posted by M344587487 View Post
How it typically works is that an op has either nothing or one string attached to it. This makes arg parsing a doddle with something like getopt, which easily allows defining a short and long version of an op like -h and --help. Personally I'd convert the arg parsing to getopt and do "openowl --pm1 <exp>,<b1bound>,<b2bound>" assuming the bounds are only used with pm1.
Is getopt available on windows? (for people building on windows)
preda is offline   Reply With Quote
Old 2019-02-08, 10:39   #1000
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

33B16 Posts
Default

An internet search indicates it's available on MingW/cygwin and that workarounds for MSVC appear to simply copy getopt.h from MingW ( https://www.codefull.org/2015/04/can...under-windows/ ). What a pain MSVC is.
M344587487 is offline   Reply With Quote
Old 2019-02-08, 10:51   #1001
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2·33·109 Posts
Default

Quote:
Originally Posted by preda View Post
Is getopt available on windows? (for people building on windows)
getopt has been used as part of lasieve which compiles in pretty much all environments(these days). There was a bit of issue with POSIXLY_CORRECT not being set sometimes when compiling on windows which is worth watching out for. This was discussed in https://www.mersenneforum.org/showthread.php?t=18043
henryzz 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 06:56.


Fri Aug 6 06:56:27 UTC 2021 up 14 days, 1:25, 1 user, load averages: 2.56, 2.63, 2.69

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.