![]() |
|
|
#749 |
|
Romulan Interpreter
Jun 2011
Thailand
25BF16 Posts |
It is not your batch file. I found this behavior too, when the exponent is finished. It did not bothered me, beside of the thing that the message "could not find a file to resume from" is written at the end (after the testing is done), which I already mention. I think there is a mis-synchronization between CPU and GPU, willing to do the things faster, the last one does not wait for the former to finish its part first (printing, returning the exit codes) then the things go wild. It does not affect the computing, just the cosmetic. For me it was a bit bothering that I have to edit the batch file (to eliminate the first row) and restart, every time one exponent was finished. Right now I am LL-ing at the LL front, so it will take about 5 days for an expo. I can live doing that editing every 5 days.
|
|
|
|
|
|
#750 | |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
Thanks for the info. |
|
|
|
|
|
|
#751 | |
|
Jun 2005
2018 Posts |
Quote:
*infp = NULL; after the each of the fclose(*infp) calls @ line 1525, 1587, and possibly1494 of rw.cu. Since I'm not running or compiling the code currently I can't be sure, but it was needed before (see the code in http://mersenneforum.org/showpost.ph...&postcount=405). If this isn't the correct fix in the current code it's still a place to start looking - a file was being closed but since the file pointer wasn't being set to NULL other code was trying to use it. Chaos resulted. If I remember it didn't always happen - either it happened when restarting from a checkpoint but not from scratch or vice versa. Wish I could remember which one was the problem, but it's been a while. If someone can save a checkpoint file that's nearly finished it would make this easier to test. Last fiddled with by kjaget on 2012-02-16 at 15:28 |
|
|
|
|
|
|
#752 | |
|
Dec 2009
Peine, Germany
1010010112 Posts |
Quote:
Find attached a zip containing experimental exe and modified rw.cu. I have no time testing... :-( |
|
|
|
|
|
|
#753 |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
|
|
|
|
|
|
#754 |
|
"Jerry"
Nov 2011
Vancouver, WA
46316 Posts |
|
|
|
|
|
|
#755 |
|
Dec 2009
Peine, Germany
331 Posts |
Here it is.
|
|
|
|
|
|
#756 |
|
Mar 2003
Melbourne
5·103 Posts |
My invoking cudalucas scripts:
Start with a file 'exp' (list of candidates to check): Code:
25431071 27961807 25019459 Code:
tail -n 1 -F exp | ./runme.sh Code:
echo 25888663 >> exp runme.sh: Code:
#!/bin/bash while read line do echo Starting M$line ./start.sh $line done Code:
#!/bin/bash GPU=`cat limit.gpu` ./CUDALucas.cuda3.2.sm_13.WIN64.exe -c10000 -D$GPU -t $1 To be better extensible, you could do something like: Code:
#!/bin/bash OPTIONS=`cat limit.options` ./CUDALucas.cuda3.2.sm_13.WIN64.exe $OPTIONS $1 Pros: You can add exponents any time. No need to ctrl-c to redo a batch file or stop the code in anyway. It keeps on going as long as you have sufficient exponents in the 'exp file. Cons: A little complicated. Maybe hard to understand. Yes it's a hack - I didn't say it's pretty. I'm not a coder, so the coding style may offend :) (My apologies) I'm guessing it could work under linux. Under Windows it uses cygwin tools, so you need to install that. No warranty whatsoever. I'm sorry, I can't support this if it doesn't work for you. I provide this as information only. -- Craig |
|
|
|
|
|
#757 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
11100001101012 Posts |
I bet those who are familiar with cmd.exe can put something together for Windows that is similar, so that it doesn't necessitate cygwin. The only major drawback I see is that you'd spawn a child process for each script, though they would be idle and shouldn't affect performance in any way, but if you watch your process list carefully, it'll be annoying.
Perhaps an alternate runme.sh: Code:
#!/bin/bash FLAGS='cat [insert options file here, relative to above directory]' while read line do echo "Starting M$line" ./CUDALucas.[blah blah insert proper name].exe $FLAGS $line done Code:
tail -n 1 -F exp | ./runme.sh Edit: When I tried that tail command with the example exp file, it printed the last line, not the first line. That means the first line exp will never get tested unless you let the exp file get really low. Also, how do you remove lines once a test is done? And now that I think about it, I don't understand how getting to the end of the while loop will cause the tail command to run again and input another exp. Last fiddled with by Dubslow on 2012-02-16 at 22:02 |
|
|
|
|
|
#758 |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
|
|
|
|
|
|
#759 |
|
Dec 2009
Peine, Germany
331 Posts |
So the code change did have an effect?
New topic: I'm currently developing a proof-of-concept CUDALucasWatchdog, just for curiousity. It is written in Java and does the following: 1) Check via "taskmgr.exe" / "ps -e" if CUDALucas is running. 2) If not, goto worktodo.txt (new) and grab top assignment line. 3) Check in mersarch.txt if this expo has ever been finished. 4a) If yes delete assigment line in worktodo and goto 2). 4b) If no launch CUDALucas via command line call the old-fashioned way. 5) Quit This program would have to be periodally executed by the user/system like the perl submit spider is working. I'm not sure yet if I will ever publish the code but liked to know if a Cygwin based solution or a Java solution would be preferred. I have no Pros and Cons yet. CUDALucasWatchdog would be designed for Win, Linux (and Mac) to run on. Example call: Code:
java -jar CUDALucasWatchdog "F:\Computing\CUDALucas\CUDALucas.x.y.z.exe" |
|
|
|
![]() |
| Thread Tools | |
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 |