![]() |
|
|
#155 |
|
Jun 2003
2·3·7·112 Posts |
IIRC the issue was when the shift was just a bit smaller than p (i.e. very close to p).
|
|
|
|
|
|
#156 |
|
"Mihai Preda"
Apr 2015
3·457 Posts |
Yes, that's how I see "offset", a value in [0, Exponent - 1]. (randomly generated at the start of a new exponent, unless forced with -offset).
|
|
|
|
|
|
#157 |
|
"Mihai Preda"
Apr 2015
3·457 Posts |
Even when starting with a small offset, by doubling on each iteration it grows large quickly and I have to handle the full range anyhow, thus no much benefit in limiting the starting value.
|
|
|
|
|
|
#158 | |
|
Sep 2003
A1916 Posts |
Quote:
The bug was triggered when the shift was greater than p − 64. Obviously, for p in the tens of millions it was extremely rare, but when you ran triple checks of very low exponents it was triggered a few times. |
|
|
|
|
|
|
#159 |
|
"Mihai Preda"
Apr 2015
3·457 Posts |
3% sounds like a lot. What I'd like to achieve is no-offset performance parity when the user sets -offset 0. (This is not the case now, the perf impact is the same regardless of the offset being 0 or something else).
|
|
|
|
|
|
#160 | |
|
"Mihai Preda"
Apr 2015
3×457 Posts |
Quote:
|
|
|
|
|
|
|
#161 | |
|
Serpentine Vermin Jar
Jul 2014
CF116 Posts |
Quote:
|
|
|
|
|
|
|
#162 |
|
"Mihai Preda"
Apr 2015
3·457 Posts |
I just submitted changes to avoid [most of] the performance penalty when the offset is zero (-offset 0 on exponent start). So even with v0.3, you should see now the same perf as with v0.2 when not using offset.
|
|
|
|
|
|
#163 |
|
Romulan Interpreter
Jun 2011
Thailand
32·29·37 Posts |
After endless struggle we succeeded in building our own owl. Or owl own. Not clear how.
The struggle is not due to the program, but due to our "excellent knowledge" about using the tools. But, well, we succeeded at last, to get a partial selftest ok. Partial because it is still running. We mainly followed Victor's guide, with few deviations. Deviations were due to the fact that we had to install cygwin too, needed for mingw and msys. Then, within msys, we couldn't run make, because... well... there is no make. There is a mingw32-make.exe, but we were not sure if it is the same toy or not. After some more search, we found that we need to run > pacman -S msys/make Then it asked us what the hack is g++. So we also had to run > pacman -S msys/gcc Then the infamous "make" command produced an .exe file. Which is now self-testing. Up to now, everything ok. We have a small issue however: it does not get out with ctrl+c (not ctrl+break). Most probably we missed a switch or a link or something.. Last fiddled with by LaurV on 2017-05-28 at 11:23 |
|
|
|
|
|
#164 |
|
Romulan Interpreter
Jun 2011
Thailand
32×29×37 Posts |
Ok. Selftests passed, but since the worktodo.h separation, it seems we can't avoid skipping all lines from the worktodo, no matter what we put there. What are we doing wrong? (also, the harmless warning, caused by unused variable)
Code:
e:\99 - Prime\gpuOwl>gpuowl -logstep 1000 -savestep 100000
gpuOwL v0.3 GPU Lucas-Lehmer primality checker; Sun May 28 20:07:11 2017
Config: -logstep 1000 -savestep 100000 -cl ""
32x1050MHz Tahiti; OpenCL 1.2 AMD-APP (2348.3)
OpenCL compilation log:
An invalid option was specified.
Falling back to CL1.x compilation (error -11)
OpenCL compilation log:
"C:\blahblah\gpuowl.cl", line 529: warning: variable
"H" was declared but never referenced
uint W = 1024, H = 2048, GW = W / 64;
^
Compile : 760 ms
General setup : 320 ms
worktodo.txt line 'DoubleCheck=blahblah,40159129,72,1' skipped
worktodo.txt line 'DoubleCheck=blahblah,40159153,72,1' skipped
Bye
e:\99 - Prime\gpuOwl>
Last fiddled with by LaurV on 2017-05-28 at 13:11 |
|
|
|
|
|
#165 | |
|
"Mihai Preda"
Apr 2015
3×457 Posts |
Quote:
I updated the code to be explicit on that, you may git pull again. |
|
|
|
|
![]() |
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 |