mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GPU Computing (https://www.mersenneforum.org/forumdisplay.php?f=92)
-   -   The P-1 factoring CUDA program (https://www.mersenneforum.org/showthread.php?t=17835)

owftheevil 2013-08-16 00:15

Kladner,

Sorry but no I can't. I have no experience with windows. In fact, I just installed win7 so that I can start to get it figured out. Any help would be greatly appreciated.

Manpowre 2013-08-16 17:44

[QUOTE=kladner;349736]I know it's been discussed before, and I can track it down, but can you point me in the right direction for setting up to compile for and in Windows 7 64-bit?

EDIT: I've downloaded the "snapshot" 'cudapm1-code-41-trunk.zip' from Sourceforge.[/QUOTE]

Problem here is not to get Pm-1 into VC project, problem is GMP.h.
I found MPIR tutorial to replace GMP, but it was not straight forward.

also, I got constant errors with long long e parsed from arg. not sure why, but that was weird, as that code I used myself before..

so it just doesnt build like that.. I got to the point where i linked MPIR in.. now just code issues which I guess is linux specific.

kladner 2013-08-16 21:42

[QUOTE=owftheevil;349737]Kladner,

Sorry but no I can't. I have no experience with windows. In fact, I just installed win7 so that I can start to get it figured out. Any help would be greatly appreciated.[/QUOTE]

Thanks! You've done plenty already. If I have any inspired successes, be sure I'll be shouting from the rooftops.

frmky 2013-08-16 22:32

Here's a link to the files I used for the compile. Hopefully everything you need is there. Note the solution file is called vectorAdd since I just stole that example from the cuda samples and substituted what I needed without changing the name. It should compile the CUDAPm1.cu in the directory as is, but I haven't tried the latest version.

[url]https://www.dropbox.com/sh/n1tqr8660fkivtm/mM3EaqhWTW[/url]

TheMawn 2013-08-16 23:18

Does P-1 use the double precision that GTX 500 cards have but 600 and 700 don't? What's the best series of card to use for P-1?

kracker 2013-08-17 00:16

[QUOTE=TheMawn;349855]Does P-1 use the double precision that GTX 500 cards have but 600 and 700 don't? What's the best series of card to use for P-1?[/QUOTE]

What do you mean? They are all capable of DP.

EDIT: Second question, sorry. Probably 500 series.

TheMawn 2013-08-17 01:38

Oh I know they all do double precision but there was something about it being a third of the speed on the 600 and 700

kladner 2013-08-17 03:49

[QUOTE=frmky;349851]Here's a link to the files I used for the compile. Hopefully everything you need is there. Note the solution file is called vectorAdd since I just stole that example from the cuda samples and substituted what I needed without changing the name. It should compile the CUDAPm1.cu in the directory as is, but I haven't tried the latest version.

[URL]https://www.dropbox.com/sh/n1tqr8660fkivtm/mM3EaqhWTW[/URL][/QUOTE]

Many thanks, Greg. I'll have a go with them.

kladner 2013-08-17 03:52

[QUOTE=TheMawn;349874]Oh I know they all do double precision but there was something about it being a third of the speed on the 600 and 700[/QUOTE]

The PM1 program is derived from CUDALucas, so it leans heavily on DP. 500 series is better in this regard than the higher numbered ones. This does not apply to Titan, which is a special case unto itself.

frmky 2013-08-17 09:24

[QUOTE=TheMawn;349874]Oh I know they all do double precision but there was something about it being a third of the speed on the 600 and 700[/QUOTE]

Yes, it's all double precision. The Titan is the fastest by a large margin, but it's also ridiculously expensive. Otherwise go with a 5xx series and avoid the intermediate cards based on the Kepler K10.

nucleon 2013-08-17 15:22

[QUOTE=frmky;349917]Yes, it's all double precision. The Titan is the fastest by a large margin, but it's also ridiculously expensive. Otherwise go with a 5xx series and avoid the intermediate cards based on the Kepler K10.[/QUOTE]

GTX780 is Titan-lite. GTX780 is a different chip to GTX770.

If you can't get a GTX5x0, and a Titan is out of your price range then GTX780 is your better bet. Of course factoring in budget constraints.

But all things considered, If you want to do DP work, low clocked quad core haswell + high clocked ram comes out on top efficiency-wise.

-- Craig


All times are UTC. The time now is 23:19.

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