![]() |
[QUOTE=Dubslow;301091]Do you? :unsure:[/QUOTE]
Yes. |
[QUOTE=chalsall;301092]Yes.[/QUOTE]
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...? |
[QUOTE=Dubslow;301093]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...?[/QUOTE] Dubslow... There is no benefit in the teacher telling the student the answer. What is the sound of one hand clapping? |
[QUOTE=LaurV;301067]
If worktodo ...contains garbage, then it exists normally with "No valid assignment found". [/QUOTE] 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[/code]) |
[QUOTE=chalsall;301094]Dubslow... There is no benefit in the teacher telling the student the answer.
[/QUOTE] I thought I was alone occasionally "being [strike]John Malkovich[/strike]". |
[QUOTE=Batalov;301099]I thought I was alone occasionally "being [strike]John Malkovich[/strike]".[/QUOTE]
Actually, I was channeling my "inner Mr. R. D. Silverman" when I wrote that. But any uptight pedantic would do.... :smile: |
With the contents of the file being:
[CODE] Test=N/A,216091 Test=N/A,756839 Test=N/A,500009 Test=N/A,859433 [/CODE] 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.[/CODE] 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[/CODE] and the crash follows in about 1-2 seconds |
[QUOTE=msft;295750][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) [/code][/QUOTE] 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) |
Debugging it on my end was useless...
1 Attachment(s)
[QUOTE=Dubslow;301178]I'll run it through with -O0 and see if anything appears there.[/QUOTE]
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?) |
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. |
[QUOTE=Dubslow;301093]And it's not something that would make Linux crash...? Did you use a debugger, or just look at the code and find it?
[/QUOTE] 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 |
| All times are UTC. The time now is 23:15. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.