mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-12-05, 16:01   #1
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default genefer/CUDA

Hi ,
I convert genefer.c to CUDA.
Quote:
cudagenefer.0.1$ time ./CUDAGenefer input
GeneFer 1.3 (CUDA) Copyright (C) 2001-2002, Yves GALLOT
Copyright (C) 2010, Shoichiro Yamada
A program for finding large probable generalized Fermat primes.

GeneFer -t run test
GeneFer <filename> test <filename>
GeneFer use interactive mode

Start test of file 'input'.
1651902^16384+1 is a probable prime. (err = 3.75e-01)

real 2m8.700s
user 0m53.930s
sys 1m14.650s
Attached Files
File Type: gz CUDAGenefer.0.1.tar.gz (4.4 KB, 222 views)
msft is offline   Reply With Quote
Old 2010-12-05, 19:02   #2
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

624910 Posts
Default

Very cool! Methinks I'll give this a try as soon as my friend with the GTX 460 gets it back online (still waiting for an OS reinstall...Ubuntu 9.04 is not your friend when it comes to installing CUDA drivers).
mdettweiler is offline   Reply With Quote
Old 2010-12-05, 19:37   #3
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11×577 Posts
Default

Quote:
Originally Posted by msft View Post
Hi ,
I convert genefer.c to CUDA.
I suggest that you add the improvements from genefer 2.2.0, which is used by PRPNet on PrimeGrid.
rogue is offline   Reply With Quote
Old 2010-12-06, 03:06   #4
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Hi, mdettweiler, rouge
Quote:
Originally Posted by rogue View Post
I suggest that you add the improvements from genefer 2.2.0, which is used by PRPNet on PrimeGrid.
Can i have more information ?
msft is offline   Reply With Quote
Old 2010-12-06, 05:08   #5
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Hi ,
Quote:
cudagenefer.0.2$ time ./CUDAGenefer input
GeneFer 1.3 (CUDA) Copyright (C) 2001-2002, Yves GALLOT
Copyright (C) 2010, Shoichiro Yamada
A program for finding large probable generalized Fermat primes.

GeneFer -t run test
GeneFer <filename> test <filename>
GeneFer use interactive mode

Start test of file 'input'.
48594^65536+1 is a probable prime. (err = 0.00e+00)

real 7m40.662s
user 3m35.520s
sys 4m5.030s
Attached Files
File Type: gz CUDAGenefer.0.2.tar.gz (5.4 KB, 154 views)
msft is offline   Reply With Quote
Old 2010-12-06, 06:31   #6
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

2×34×13 Posts
Default

Quote:
Originally Posted by msft View Post
Can i have more information ?
The modifications were done by David Underbakke. The code is at http://www.underbakke.com/genefer/.
frmky is offline   Reply With Quote
Old 2010-12-06, 08:05   #7
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Hi ,frmky
Quote:
Originally Posted by frmky View Post
The modifications were done by David Underbakke. The code is at http://www.underbakke.com/genefer/.
Good information.
Thank you,
msft is offline   Reply With Quote
Old 2010-12-06, 12:05   #8
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Convert complete.
Quote:
cudagenefer.0.3$ time ./CUDAGenefer input
GeneFer 1.3 (CUDA) Copyright (C) 2001-2002, Yves GALLOT
Copyright (C) 2010, Shoichiro Yamada
A program for finding large probable generalized Fermat primes.

GeneFer -t run test
GeneFer <filename> test <filename>
GeneFer use interactive mode

Start test of file 'input'.
4^524288+1 is a probable prime. (err = 1.11e-16)

real 36m49.528s
user 13m36.050s
sys 23m13.320s
Attached Files
File Type: gz CUDAGenefer.0.3.tar.gz (5.4 KB, 169 views)
msft is offline   Reply With Quote
Old 2010-12-06, 13:36   #9
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11×577 Posts
Default

Quote:
Originally Posted by msft View Post
Hi, mdettweiler, rouge

Can i have more information ?
You can find the sourcesto the various versions of genefer 2.2.0 here.

genefer 2.2.0 has these enhancements over genefer 1.x:
  • checkpointing - ability to stop and continue PRP test
  • residue generation - ability to compare residue with another run on another computer to ensure PRP test didn't fail due to some problem with the hardware/software
  • residue verification - ability to compare residue with known residues to ensure that have a good build
  • quick option -use -q to pass number to test on the command line
  • error checking - ability to stop a PRP test immediately if a roundoff error is detected

There are a few more, but you can see that many these modifications are very important when trying to ensure that the test result from genefer is valid.

To incorporate your changes, start with the 32-bit Windows with 64-bit x87 FPU sources. I recommend that you post your progress here because I think that what you are working on with be of great interest to PrimeGrid. AFAIK, none of the other GFN search projects are still running. Providing a means for CUDA users to PRP test GFNs will add a lot of excitement to that project.
rogue is offline   Reply With Quote
Old 2010-12-06, 14:03   #10
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Hi, rogue
Now Post to PrimeGrid.
msft is offline   Reply With Quote
Old 2010-12-06, 19:25   #11
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

2·34·13 Posts
Default

Quote:
Originally Posted by rogue View Post
You can find the sourcesto the various versions of genefer 2.2.0 here.
I don't see the source on that page, only the binaries. Is there a link I'm missing?
frmky is offline   Reply With Quote
Reply



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 09:12.


Sat Jul 17 09:12:07 UTC 2021 up 50 days, 6:59, 1 user, load averages: 2.18, 1.83, 1.66

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.