mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-06-02, 21:38   #1354
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37·263 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Do you?
Yes.
chalsall is offline   Reply With Quote
Old 2012-06-02, 21:44   #1355
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by chalsall View Post
Yes.
And it's not something that would make Linux crash...? Did you use a debugger, or just look at the code and find it?

------------------------

How about you tell flash so he can fix it, while I try and figure it out...?
Dubslow is offline   Reply With Quote
Old 2012-06-02, 21:51   #1356
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

260316 Posts
Default

Quote:
Originally Posted by Dubslow View Post
And it's not something that would make Linux crash...? Did you use a debugger, or just look at the code and find it?

------------------------

How about you tell flash so he can fix it, while I try and figure it out...?
Dubslow... There is no benefit in the teacher telling the student the answer.

What is the sound of one hand clapping?
chalsall is offline   Reply With Quote
Old 2012-06-02, 22:07   #1357
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by LaurV View Post
If worktodo ...contains garbage, then it exists normally with "No valid assignment found".
With garbage, can you make "No Test=" or "invalid format" or "invalid data" appear?

(For the last two, you could use 4 or more commas, or put a nonprime exponent or expo < 86423. E.g.:
Code:
bill@Gravemind:~/CUDALucas∰∂ CUDALucas

Warning: exponent is not prime!
Warning: ignoring line 1: >> Test=N/A,25136458,69,1
in "worktodo.txt". Reason: invalid data.
Continuing work from a partial result of M25866773 fft length = 1474560 iteration = 1988865
)

Last fiddled with by Dubslow on 2012-06-02 at 22:11
Dubslow is offline   Reply With Quote
Old 2012-06-02, 22:23   #1358
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36·13 Posts
Thumbs up

Quote:
Originally Posted by chalsall View Post
Dubslow... There is no benefit in the teacher telling the student the answer.
I thought I was alone occasionally "being John Malkovich".
Batalov is offline   Reply With Quote
Old 2012-06-02, 22:36   #1359
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37·263 Posts
Default

Quote:
Originally Posted by Batalov View Post
I thought I was alone occasionally "being John Malkovich".
Actually, I was channeling my "inner Mr. R. D. Silverman" when I wrote that.

But any uptight pedantic would do....
chalsall is offline   Reply With Quote
Old 2012-06-03, 08:33   #1360
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

7·1,373 Posts
Default

With the contents of the file being:

Code:
Test=N/A,216091
Test=N/A,756839
Test=N/A,500009
Test=N/A,859433
I got

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

e:\CudaLucas>cl2024020x64 -d 0

------- DEVICE 0 -------
name                GeForce GTX 580
totalGlobalMem      1610612736
sharedMemPerBlock   49152
regsPerBlock        32768
warpSize            32
memPitch            2147483647
maxThreadsPerBlock  1024
maxThreadsDim[3]    1024,1024,64
maxGridSize[3]      65535,65535,65535
totalConstMem       65536
Compatibility       2.0
clockRate (MHz)     1564
textureAlignment    512
deviceOverlap       1
multiProcessorCount 16

Warning: ignoring line 1 in "worktodo.txt"! Reason: invalid format
Warning: ignoring line 2 in "worktodo.txt"! Reason: invalid format
Warning: ignoring line 3 in "worktodo.txt"! Reason: invalid format
Warning: ignoring line 4 in "worktodo.txt"! Reason: invalid format
No valid assignment found.
then adding a comma after the third line I got

Code:
e:\CudaLucas>cl2024020x64 -d 0

------- DEVICE 0 -------
name                GeForce GTX 580
totalGlobalMem      1610612736
sharedMemPerBlock   49152
regsPerBlock        32768
warpSize            32
memPitch            2147483647
maxThreadsPerBlock  1024
maxThreadsDim[3]    1024,1024,64
maxGridSize[3]      65535,65535,65535
totalConstMem       65536
Compatibility       2.0
clockRate (MHz)     1564
textureAlignment    512
deviceOverlap       1
multiProcessorCount 16

Warning: ignoring line 1 in "worktodo.txt"! Reason: invalid format
Warning: ignoring line 2 in "worktodo.txt"! Reason: invalid format
and the crash follows in about 1-2 seconds
LaurV is offline   Reply With Quote
Old 2012-06-03, 23:22   #1361
moebius
 
moebius's Avatar
 
Jul 2009
Germany

2×3×101 Posts
Default

Quote:
Originally Posted by msft View Post
Code:
$ ./CUDALucas -threads 512 332220523
DEVICE:0------------------------
name                GeForce GTX 550 Ti
totalGlobalMem      1072889856
...
start M332220523 fft length = 18874368
err = 0.35937, increasing n from 18874368
 
start M332220523 fft length = 18874368
err = 0.35937, increasing n from 18874368
 
start M332220523 fft length = 20971520
Iteration 10000 M( 332220523 )C, 0x1a313d709bfa6663, n = 20971520, CUDALucas v1.66 err = 0.03358 (22:30 real, 134.9292 ms/iter, ETA 12451:20:29)
Iteration 20000 M( 332220523 )C, 0x73dc7a5c8b839081, n = 20971520, CUDALucas v1.66 err = 0.03358 (22:26 real, 134.5456 ms/iter, ETA 12415:34:17)
just started....

>CUDALucas2.01.cuda4.0.sm_21.x64.exe -threads 512 332XXXXXX

start M332XXXXXX fft length = 16777216 iteration = 22 < 1000 && err = 0.28125 >= 0.25, increasing n from 16777216

start M332XXXXXX fft length = 18874368 iteration = 29 < 1000 && err = 0.265625 >= 0.25, increasing n from 18874368

start M332XXXXXX fft length = 20971520
Iteration 10000 M( 332XXXXXX )C, 0x9786a346ab86fc52, n = 20971520, CUDALucas v2.01 err = 0.03516 (11:02 real, 66.2000 ms/iter, ETA 6108:47:24)
moebius is offline   Reply With Quote
Old 2012-06-04, 04:15   #1362
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default Debugging it on my end was useless...

Quote:
Originally Posted by Dubslow View Post
I'll run it through with -O0 and see if anything appears there.
Piddly squat. I await flash's report. I'm stumped. (chalsall, for the sake of the software, could you please PM/tell flash what to fix so that it works?)
Attached Thumbnails
Click image for larger version

Name:	screenshot69.png
Views:	157
Size:	31.7 KB
ID:	8089  

Last fiddled with by Dubslow on 2012-06-04 at 04:18
Dubslow is offline   Reply With Quote
Old 2012-06-04, 14:24   #1363
kjaget
 
kjaget's Avatar
 
Jun 2005

3·43 Posts
Default

You're calling strcpy_s with the wrong arguments. This is a problem on the strcopy call on line 230 specifically, and maybe other places. Note how the strcpy_s fails when the source is too long compared to strncpy

Also, you might want to change the vars which hold the exponent to unsigned values since you're filling them with strtoul.

Last fiddled with by kjaget on 2012-06-04 at 14:30
kjaget is offline   Reply With Quote
Old 2012-06-04, 17:06   #1364
chris2be8
 
chris2be8's Avatar
 
Sep 2009

81E16 Posts
Default

Quote:
Originally Posted by Dubslow View Post
And it's not something that would make Linux crash...? Did you use a debugger, or just look at the code and find it?
If code behaves differently on Linux and Windows the first thing to check is that lines end with crlf on Windows and lf on Linux. Try running unix2dos against the config file on Linux and see what happens.

Chris
chris2be8 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't DC/LL them with CudaLucas LaurV Data 131 2017-05-02 18:41
CUDALucas / cuFFT Performance on CUDA 7 / 7.5 / 8 Brain GPU Computing 13 2016-02-19 15:53
CUDALucas: which binary to use? Karl M Johnson GPU Computing 15 2015-10-13 04:44
settings for cudaLucas fairsky GPU Computing 11 2013-11-03 02:08
Trying to run CUDALucas on Windows 8 CP Rodrigo GPU Computing 12 2012-03-07 23:20

All times are UTC. The time now is 03:11.


Sat Jul 17 03:11:49 UTC 2021 up 50 days, 59 mins, 1 user, load averages: 1.27, 1.35, 1.33

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.