![]() |
|
|
#1552 | |
|
"Jerry"
Nov 2011
Vancouver, WA
100011000112 Posts |
Quote:
EDIT: Just figured it out... program is fine. The script I use to open everything was opening the first two instances from the same directory. My fault, though I don't remember editing that file recently. Thanks for the help Jerry Last fiddled with by flashjh on 2012-01-16 at 15:20 Reason: found the problem |
|
|
|
|
|
|
#1553 |
|
Mar 2011
Germany
3×31 Posts |
Hi Oliver,
I tried to follow the source code of mfaktc and found the important places where to change stuff to let it work with repunits. But as I don't fully understand all the source code I don't know if these places would be enough. In general: The factors itself have the form of f=2*k*p+1. What is additional compared to factors of Mersenne numbers is that f%8 can also be 3 and 5 (in addition to 1 and 7). So in mfaktc.c line 213 and 241 this must be changed. Also one has to make sure that <base>-1 is not a factor of f itself if the primality is not checked of these factors. Then the divisibility checks in tf_*.cu must be done with <base>^p % f. (e.g. tf_71bit.cu line 455-481) I implemented these changes (for normal base 10 repunits as this is my priority right now) in factor5 so that you can compare, just make a diff between the original and the repunit version. I hope this helps not to invest too much time in thinking about math and the implementation. Cheers, Danilo |
|
|
|
|
|
#1554 |
|
Mar 2011
Germany
3·31 Posts |
I found out that there are only 16 remainders for mod 120 (not 32 as I assumed first). This made the changes compared to factor5 even more easier. Now it is a factor 2 faster.
In case someone is interested I uploaded the new source file. |
|
|
|
|
|
#1555 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
2·3·11·73 Posts |
Quote:
![]() Luigi |
|
|
|
|
|
|
#1556 |
|
Mar 2011
Germany
9310 Posts |
|
|
|
|
|
|
#1557 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
2·3·11·73 Posts |
![]() Quote:
Last fiddled with by ET_ on 2012-01-25 at 12:26 |
|
|
|
|
|
|
#1558 |
|
Jun 2003
13DA16 Posts |
Hmmm... By my calculation, it should be 32 only (4 mod 8, 2 mod 3, 4 mod 5 = 32 mod 120). How did you arrive at the figure 16?
|
|
|
|
|
|
#1559 | |
|
Mar 2011
Germany
5D16 Posts |
Quote:
I am also no expert in number theory, I am just a theoretical physicist, or in other words an experimental mathematician .
|
|
|
|
|
|
|
#1560 |
|
Jun 2003
2·3·7·112 Posts |
|
|
|
|
|
|
#1561 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
2×47×101 Posts |
Apparently mod 5 and mod 8 are coupled.
There are 4 possibilities mod 5 and 4 possibilities mod 8, but only 8 possibilities mod 40: +/-1, +/-3, +/-9, +/-13. I used known factors from Phin10.txt ... (I am y.a. experimental mathematician.) |
|
|
|
|
|
#1562 |
|
Apr 2010
Over the rainbow
2×1,303 Posts |
cuda 4.1 released http://www.tomshardware.com/news/nvi...lvm,14579.html
|
|
|
|
![]() |
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 |
| The P-1 factoring CUDA program | firejuggler | GPU Computing | 753 | 2020-12-12 18:07 |
| gr-mfaktc: a CUDA program for generalized repunits prefactoring | MrRepunit | GPU Computing | 32 | 2020-11-11 19:56 |
| mfaktc 0.21 - CUDA runtime wrong | keisentraut | Software | 2 | 2020-08-18 07:03 |
| World's second-dumbest CUDA program | fivemack | Programming | 112 | 2015-02-12 22:51 |