mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-10-12, 02:20   #155
prime7989
 
Jun 2012

17 Posts
Default Is genefercuda correct

I tried genefercuda for a gtx680 nvidia GPU on a AMD FX8120 cpu and 32 gb ram for
Fermat number F19 which is known composite with b=2 and N=524288=2^19
and the program prints out that it is probably prime.
Can any one else try this out?
A...
prime7989 is offline   Reply With Quote
Old 2012-10-12, 02:47   #156
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

9,497 Posts
Default

Quote:
Originally Posted by prime7989 View Post
I tried genefercuda for a gtx680 nvidia GPU on a AMD FX8120 cpu and 32 gb ram for
Fermat number F19 which is known composite with b=2 and N=524288=2^19
and the program prints out that it is probably prime.
Can any one else try this out?
A...
genefercuda is running a PRP test in base 2 (just checked the source), which is fine for checking any GF(b), b>2 (and not a power of 2, which would be pointless).
Of course, all Fermat numbers are 2-PRPs.
Batalov is offline   Reply With Quote
Old 2012-10-12, 03:35   #157
axn
 
axn's Avatar
 
Jun 2003

13DD16 Posts
Default

Quote:
Originally Posted by Batalov View Post
genefercuda is running a PRP test in base 2 (just checked the source), which is fine for checking any GF(b), b>2 (and not a power of 2, which would be pointless).
Of course, all Fermat numbers are 2-PRPs.
It should be relatively trivial to change the PRP-base (to say, 3). I will try it out later.

Also, 2^524288 = 65536^32768. So a much smaller FFT may be used.
axn is offline   Reply With Quote
Old 2012-10-12, 13:52   #158
axn
 
axn's Avatar
 
Jun 2003

13DD16 Posts
Default

Quote:
Originally Posted by axn View Post
It should be relatively trivial to change the PRP-base (to say, 3). I will try it out later.

Also, 2^524288 = 65536^32768. So a much smaller FFT may be used.
So, I tried this out... and you wouldn't believe what I found out:
Code:
65536^32768+1 is composite. (RES=0df151a4161b6c99) (157827 digits) (err = 0.0005) (time = 0:07:24)
axn is offline   Reply With Quote
Old 2012-10-13, 12:19   #159
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

3×3,221 Posts
Default

That's creepy! Don't say all the tests need to be redone?
LaurV is offline   Reply With Quote
Old 2012-10-15, 01:26   #160
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Quote:
Originally Posted by LaurV View Post
That's creepy! Don't say all the tests need to be redone?
I Bet your side.
msft is offline   Reply With Quote
Old 2012-10-15, 09:12   #161
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

3·3,221 Posts
Default

Oh, I forgot about this, my post was kinda joke, based on the fact that the incriminated number is F19, which is known as composite. If axn did a 3-PRP test it was normal to be composite (it is like a Pepin Test.... squared, I might be wrong here but this will never return a false result, i.e. Fx is 3-prp if and only if it is prime).
LaurV is offline   Reply With Quote
Old 2012-10-16, 06:35   #162
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

base=3
Code:
$ diff genefer.c genefer.c.ORG
1757c1757
<       CONST double t1 = 2.0 / m, t2 = 3 * t1;
---
>       CONST double t1 = 2.0 / m, t2 = 2 * t1;
1781c1781
<       z = FFTinitGFN(m, 3.0, &n1, &n2);
---
>       z = FFTinitGFN(m, 2.0, &n1, &n2);
$ cc genefer.c -lm
$ ./a.out -t
GeneFer 1.3 (standard)  Copyright (C) 2001-2002, Yves GALLOT
A program for finding large probable generalized Fermat primes.

Usage: GeneFer -b            run bench
       GeneFer -t            run test
       GeneFer <filename>    test <filename>
       GeneFer               use interactive mode

100050^16+1 is a probable prime. (err = 1.53e-05)
100014^32+1 is a probable prime. (err = 3.05e-05)
100234^64+1 is a probable prime. (err = 4.58e-05)
100032^128+1 is a probable prime. (err = 9.16e-05)
5684328^256+1 is a probable composite (err = 5.00e-01).
4619000^512+1 is a probable composite (err = 5.00e-01).
3752220^1024+1 is a probable composite (err = 5.00e-01).
msft is offline   Reply With Quote
Old 2012-10-16, 06:45   #163
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

9,497 Posts
Default

Aaah! msft is Morra!
(...I suddenly expect Morra defence in the Vote chess thread. No. I did expect it before. That's when I looked up Morra.
Too late. ;-) )

"The Groke" on the other hand reminds me of Piet Hein's Grooks.
Quote:
THE ROAD TO WISDOM?

Well, it's plain
and simple to express.
Err and err and err again,
but less and less and less.

Last fiddled with by Batalov on 2012-10-16 at 06:52
Batalov is offline   Reply With Quote
Old 2013-03-17, 04:54   #164
prime7989
 
Jun 2012

1710 Posts
Thumbs up

Quote:
Originally Posted by axn View Post
So, I tried this out... and you wouldn't believe what I found out:
Code:
65536^32768+1 is composite. (RES=0df151a4161b6c99) (157827 digits) (err = 0.0005) (time = 0:07:24)
Dear axn,
I dislike reading code. So please which variable did you change to make it 3-PRP
in GeneferCUDA.cu, please? If you could give me the line number of the code of function and var, I would be very greatful!
Thank you,
prime7989
prime7989 is offline   Reply With Quote
Old 2013-03-17, 08:23   #165
axn
 
axn's Avatar
 
Jun 2003

10011110111012 Posts
Default

Quote:
Originally Posted by prime7989 View Post
Dear axn,
I dislike reading code. So please which variable did you change to make it 3-PRP
in GeneferCUDA.cu, please? If you could give me the line number of the code of function and var, I would be very greatful!
Thank you,
prime7989
There are many versions of G/CUDA out there. If you can post the one you want to look at (as a forum attachment), I can tell you. FWIW, the change is easy and localised to "check" function.
axn is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Genefer's FFT applied to Mersenne squaring preda Software 0 2017-09-06 02:54
CUDA 5.5 ET_ GPU Computing 2 2013-06-13 15:50
AVX CPU LL vs CUDA LL nucleon GPU Computing 11 2012-01-04 17:52
Best CUDA GPU for the $$ Christenson GPU Computing 24 2011-05-01 00:06
CUDA? Xentar Conjectures 'R Us 6 2010-03-31 07:43

All times are UTC. The time now is 05:55.


Fri Aug 6 05:55:32 UTC 2021 up 14 days, 24 mins, 1 user, load averages: 3.26, 3.45, 3.20

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.