![]() |
|
|
#1332 | |
|
"Jerry"
Nov 2011
Vancouver, WA
21438 Posts |
Quote:
|
|
|
|
|
|
|
#1333 | ||||||
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
Sorry about taking so long with this, we wound up going out for ice cream (and getting my bike fixed).
Quote:
(That's a function definition; after the list of arguments, there's a {} indicating what the function does. With function declarations, after the list of args, there's only a semicolon, like in parse.h. Declarations are so that the compiler can check that a function is used correctly without having to know what it does. In a definition however, you need to have names for all the arguments, so that you can actually define what the function does. For whatever reason when that code was initially put into mfaktc, the second argument became useless, but it's still a compiler error to not name it.) Quote:
I didn't have helium, but I think hydrogen will do the trick ;) Quote:
![]() Quote:
I also made one change to 'cleaner' in Makefile.win; you can do "cleaner: clean \n rules" instead of "cleaner: \n rules \n make clean" to get the same effect. Quote:
Quote:
Code:
bill@Gravemind:~/CUDALucas/test∰∂ cat worktodo.txt //Test=25723987 #Test=25723987,69,1 /* Will not parse correctly */ //Test=25723987,69 //Test=N/A,25723987,69 //Test=N/A,25723987 /* Will not parse correctly */ #Test=N/A,25723987,69,1 #Test=N/A,25723987, /* Will parse correctly because of extra comma */ Last fiddled with by Dubslow on 2012-06-02 at 00:49 Reason: forgot attachment :) |
||||||
|
|
|
|
|
#1334 | |
|
Romulan Interpreter
Jun 2011
Thailand
7·1,373 Posts |
Quote:
![]() So, the code should simple handle this situation by printing the right argument. Saying or not the fact that it "uses default" or "overwritten by cmd line args", this is optional and not very important. edit: or handle like flash suggested, that is better (I did not read all the posts to the end of the thread when I replied). Last fiddled with by LaurV on 2012-06-02 at 01:35 |
|
|
|
|
|
|
#1335 | ||
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
1C3516 Posts |
Quote:
The problem is, I'd like to type "CUDALucas" and just have the program do work without telling me what it's doing. What I could do is move the ini-read after the command line, and only read options not passed as commands, and then print warnings only if the command wasn't passed and if the ini file didn't have it. If I did that, would you still want me to print the options used? Edit: Okay, sure. I'll do my proposition because it seems to me it's more useful in a wider variety of situations than just checking if it exists. Quote:
![]() @flash: Wait before compiling my most recent post, I'm going to redo fopen as well as redo parameter-reading. Last fiddled with by Dubslow on 2012-06-02 at 02:17 |
||
|
|
|
|
|
#1336 |
|
Romulan Interpreter
Jun 2011
Thailand
7·1,373 Posts |
I don't mind if you print or not the options. I only mind them be correct, if you choose to print them.
Related to typing "cudalucas" and the program runs, well, you don't imagine that I have typed all those things... I am even more lazy than you, I only typed "cu" and pressed enter. My file is called "cu.bat" .It calls another two batches, one for each card, and the maintenance (add exponents to each line, delete the old lines) is done by a third batch, which is reading the exponents from an worktodo list. I used this solution because sometime I only work with one card (the second is busy with daily work), and at that time there was no "worktodo file" option either. Later I got used with it and kept it. Bad habits die hard. The idea is that you can make a batch file if you want only to type "cudalucas" and everything runs. Don't need changing the program for it. Even with maintenance by hand, there is only a matter of few copy/paste you do only when you get new assignments. Of course, this way you have to be careful and delete the lines for the jobs already completed (I used to do that by hand in the past too). edit: for confirmation :P added the photo. the choice lines make a pause of 10 seconds between the launches of CL (I forgot about them, hehe). If you launch two CL immediately one after the other you will get an error sometime (discussed on the forum in the past too). ps: (saw the PM, man ye never go to bed? I will catch ye when ye will be sleeping... :P) Last fiddled with by LaurV on 2012-06-02 at 02:31 |
|
|
|
|
|
#1337 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
1C3516 Posts |
I asked LaurV, but he had no preference.
If a user does not enter a workfile, and the ini file does not exist or its WorkFile option is bad, should CUDALucas silently assume worktodo.txt, or print a warning like "no work file specified, assuming worktodo.txt"? If I don't see an answer, I think I'll default to no warning. |
|
|
|
|
|
#1338 | |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
|
|
|
|
|
|
|
#1339 |
|
"Jerry"
Nov 2011
Vancouver, WA
46316 Posts |
@Dubslow: I finally got around to testing. I know you're making some changes again, but there is something wrong. I think it's with the Windows worktodo.txt parser.
CuLu works fine if I use the command line switches with exponent, but any combination with no exponent on the command line causes a force closes every time (with a good Test or DoubleCheck line). I'll look at it while you rework the program. Maybe you'll find/fix it? Last fiddled with by flashjh on 2012-06-02 at 03:41 |
|
|
|
|
|
#1340 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
Last fiddled with by Dubslow on 2012-06-02 at 03:53 |
|
|
|
|
|
|
#1341 | ||
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
No, no errors. Just closes: see attached picture. (All CUDA versions do the same thing & this is the same build you posted with the ini file)
Quote:
Code:
start E:\CUDA\CUDALucas2.02.cuda3.2.sm_13.x64.exe -d 1 worktodo.txt Quote:
[break] Since my 580s are TFing, I got access to a friends GT 430 for CUDALucas testing - 153 hours for one DC (at least it's better than nothing)
Last fiddled with by flashjh on 2012-06-02 at 04:21 |
||
|
|
|
|
|
#1342 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
11100001101012 Posts |
Quote:
![]() Wow. I am shocked and confused. Does the command line stay open, so that we can at least see the last thing printed? I have literally no idea where to start. (Keep in mind that the large majority of this code used in mfaktc.) If so, I'll throw in some prints statements so we can see how far it gets before crashing. I've just added the "debug" option to Makefile.win. ![]() LaurV, can you reproduce this? Edit: Please find attached my most recent copy, which now includes various debugging statements. Run "make debug", or if that doesn't work, just add the definitions manually and run "make". (Edit2: Be sure to clean out the object files before running "make debug".) Other changes: Added -i, -v options which are PrintDeviceInfo and version respectively. -d no longer automatically prints info for any device. -v (at the moment) prints CUDALucas 2.02, though I wonder if that shouldn't be upped to 2.03. I've also modified parse.c so that every fopen() call isn't riddled with ifdefs. Instead I've defined _fopen() with the solitary #ifdef for its body. (Argument parsing is now a separate function in CUDALucas.cu to clean up main() a little bit, but there is no functional difference.) Last fiddled with by Dubslow on 2012-06-02 at 05:00 |
|
|
|
|
![]() |
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 |