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)

James Heinrich 2013-05-05 21:17

[QUOTE=frmky;339357]nrp must be a divisor of phi(d), a seg fault is likely otherwise.[/QUOTE]Thanks. However, I didn't really understand much, if any, of that (my fault, not yours) :no:
Could you rephrase in [i]really[/i] simple words such that even I could understand, please? :smile:
Is B1=390390 a fixed lower limit across all exponent sizes, or what is it tied to?

owftheevil 2013-05-05 21:17

I'm working on removing those restrictions, but at my usual tectonic pace.

Edit: b2 < 390390 with e = 6 and d = 2310 currently results in unsigned data becoming negative when initializing the data for a pass.

frmky 2013-05-06 00:51

Here's an update for Windows x64 that limits single allocations to 4 GB.

[URL="https://www.dropbox.com/s/rwfmc23bt6ed3l5/cudapm1_x64_20130505.zip"]https://www.dropbox.com/s/rwfmc23bt6ed3l5/cudapm1_x64_20130505.zip[/URL]

NBtarheel_33 2013-05-06 08:19

Where might I find the latest release for x64 Linux? Thanks...

Karl M Johnson 2013-05-06 11:40

[QUOTE=frmky;339390]Here's an update for Windows x64 that limits single allocations to 4 GB.

[URL]https://www.dropbox.com/s/rwfmc23bt6ed3l5/cudapm1_x64_20130505.zip[/URL][/QUOTE]

Works fine, Primenet accepted it.
[CODE]M62456171 Stage 2 found no factor (P-1, B1=625000, B2=17187500, e=6, n=3456K CUDAPm1 v0.10)[/CODE]

Aramis Wyler 2013-05-06 11:47

[QUOTE=Aramis Wyler;339347]Running it on the 580 ftw with the default worktodo, it starts out well:
[code]
CUDAPm1 v0.10
Selected B1=605000, B2=16637500, 4.1% chance of finding a factor
CUDA reports 2766M of 3072M GPU memory free.
Using e=6, d=2310, nrp=80
Using approximately 2529M GPU memory.
Starting stage 1 P-1, M61262347, B1 = 605000, B2 = 16637500, e = 6, fft length = 3360K
Doing 873133 iterations
Iteration 1000 M61262347, 0xf19a7f6041953a97, n = 3360K, CUDAPm1 v0.10 err = 0.19531 (0:09 real, 9.1117 ms/iter, ETA 2:12:26)
Iteration 2000 M61262347, 0xaf1d15aad49fcee8, n = 3360K, CUDAPm1 v0.10 err = 0.19531 (0:06 real, 5.7928 ms/iter, ETA 1:24:06)
Iteration 3000 M61262347, 0xb702298e7a8c9a8e, n = 3360K, CUDAPm1 v0.10 err = 0.19922 (0:06 real, 5.9176 ms/iter, ETA 1:25:49)
Iteration 4000 M61262347, 0xc53d1695707d3dc0, n = 3360K, CUDAPm1 v0.10 err = 0.19141 (0:06 real, 5.8142 ms/iter, ETA 1:24:13)
[/code]
I am thrilled to report that cudapm1 doesn't make my video card screech like cuadlucas does. I'll report back in an hour or so when it get to the end of it's ETA. Those B1, B2, and e were the default ones.[/QUOTE]

I wasn't able to post this last night, but I'm posting it now. It didn't end well. The file path in the error doesn't exist on my computer, so I'm not sure if that matters.

[code]
Iteration 872000 M61262347, 0xdf828a4cb19fc49d, n = 3360K, CUDAPm1 v0.10 err = 0.20313 (0:06 real, 6.1631 ms/iter, ETA 0:06)
Iteration 873000 M61262347, 0x92b46441f57f0dc1, n = 3360K, CUDAPm1 v0.10 err = 0.19531 (0:06 real, 6.2686 ms/iter, ETA 0:00)
M61262347, 0xfd7ab9d857ea4a36, offset = 0, n = 3360K, CUDAPm1 v0.10
Stage 1 complete, estimated total time = 1:30:47
Starting stage 1 gcd.
M61262347 Stage 1 found no factor (P-1, B1=605000, B2=16637500, e=6, n=3360K CUDAPm1 v0.10)
Starting stage 2.
Zeros: 748288, Ones: 847712, Pairs: 172477
itime: 36.417320, transforms: 1, average: 36417.320000
ptime: 997.899725, transforms: 322686, average: 3.092479
ETA: 1:26:11
itime: 44.675752, transforms: 1, average: 44675.752000
ptime: 999.123688, transforms: 322970, average: 3.093550
ETA: 1:09:16
itime: 48.428101, transforms: 1, average: 48428.101000
C:/Users/childers/Dropbox/NFS/cudapm1/build/cudapm1-code-21/cudapm1-code-21/trunk/CUDAPm1.cu(2757) : cudaDeviceSynchronize() Runtime API error 30: unknown error.
[/code]

James Heinrich 2013-05-06 11:58

[QUOTE=NBtarheel_33;339409]Where might I find the latest release for x64 Linux? Thanks...[/QUOTE]I don't know if any Linux executables have been distributed.
The source (SVN repository) is here: [url]http://sourceforge.net/projects/cudapm1/?source=directory[/url]
Windows versions are archived here: [url]http://download.mersenne.ca/CUDAPm1/[/url]
(if there are any source archives and/or non-Windows precompiled versions I can put them there too)

ET_ 2013-05-06 12:53

[QUOTE=James Heinrich;339422]I don't know if any Linux executables have been distributed.
The source (SVN repository) is here: [url]http://sourceforge.net/projects/cudapm1/?source=directory[/url]
Windows versions are archived here: [url]http://download.mersenne.ca/CUDAPm1/[/url]
(if there are any source archives and/or non-Windows precompiled versions I can put them there too)[/QUOTE]

The "problem" with Linux is that the executable is dependent on CUDA SDK and drivers.

Luigi

Jatheski 2013-05-06 13:17

Benchmark GTX 560
 
1 Attachment(s)
It works fine on my GTX 560 [URL]http://gpuz.techpowerup.com/13/05/06/4nm.png[/URL]

i7 2600k @ 3,4GHz (no OC)
Windows 7 Home Premium x64 Edition, Service Pack 1
[CODE]
M61262347 has a factor: 195362848474407049033033 (P-1, B1=605000, B2=16637500, e=6, n=3360K CUDAPm1 v0.10)[/CODE]

James Heinrich 2013-05-06 14:07

[QUOTE=Aramis Wyler;339421]It didn't end well. The file path in the error doesn't exist on my computer, so I'm not sure if that matters.[/QUOTE]I got the Windows version of the same error, about 15 minutes (~20%) into Stage 2:[code]Starting stage 2.
Zeros: 420427, Ones: 504053, Pairs: 103490
itime: 9.174569, transforms: 1, average: 9174.569000
ptime: 163.941441, transforms: 65240, average: 2.512898
ETA: 1:06:21
...
itime: 12.294913, transforms: 1, average: 12294.913000
ptime: 163.801865, transforms: 65062, average: 2.517627
ETA: 52:33
itime: 12.556195, transforms: 1, average: 12556.195000
C:/Users/gchilders/Downloads/cudapm1-code-21/cudapm1-code-21/trunk/CUDAPm1.cu(27
52) : cudaDeviceSynchronize() Runtime API error 30: unknown error.[/code]

garo 2013-05-06 20:25

Does the checkpointing feature not work yet?


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

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