mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GPU Computing (https://www.mersenneforum.org/forumdisplay.php?f=92)
-   -   genefer/CUDA (https://www.mersenneforum.org/showthread.php?t=14297)

msft 2010-12-05 16:01

genefer/CUDA
 
1 Attachment(s)
Hi ,
I convert genefer.c to CUDA.:lol:
[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
[/QUOTE]

mdettweiler 2010-12-05 19:02

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).

rogue 2010-12-05 19:37

[QUOTE=msft;240128]Hi ,
I convert genefer.c to CUDA.:lol:[/QUOTE]

I suggest that you add the improvements from genefer 2.2.0, which is used by PRPNet on PrimeGrid.

msft 2010-12-06 03:06

Hi, mdettweiler, rouge
[QUOTE=rogue;240171]I suggest that you add the improvements from genefer 2.2.0, which is used by PRPNet on PrimeGrid.[/QUOTE]
Can i have more information ?

msft 2010-12-06 05:08

1 Attachment(s)
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
[/QUOTE]

frmky 2010-12-06 06:31

[QUOTE=msft;240217]
Can i have more information ?[/QUOTE]

The modifications were done by David Underbakke. The code is at [URL="http://www.underbakke.com/genefer/"]http://www.underbakke.com/genefer/[/URL].

msft 2010-12-06 08:05

Hi ,frmky
[QUOTE=frmky;240229]The modifications were done by David Underbakke. The code is at [URL="http://www.underbakke.com/genefer/"]http://www.underbakke.com/genefer/[/URL].[/QUOTE]
Good information.
Thank you,

msft 2010-12-06 12:05

1 Attachment(s)
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
[/QUOTE]

rogue 2010-12-06 13:36

[QUOTE=msft;240217]Hi, mdettweiler, rouge

Can i have more information ?[/QUOTE]

You can find the sourcesto the various versions of genefer 2.2.0 [URL="http://www.underbakke.com/genefer/"]here[/URL].

genefer 2.2.0 has these enhancements over genefer 1.x:
[list][*]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[/list]
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 [URL="http://www.primegrid.com/forum_thread.php?id=1528"]here[/URL] 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.

msft 2010-12-06 14:03

Hi, rogue
Now Post to PrimeGrid.:blush:

frmky 2010-12-06 19:25

[QUOTE=rogue;240267]You can find the sourcesto the various versions of genefer 2.2.0 [URL="http://www.underbakke.com/genefer/"]here[/URL].
[/QUOTE]
I don't see the source on that page, only the binaries. Is there a link I'm missing?


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.