mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-02-02, 00:49   #375
bcp19
 
bcp19's Avatar
 
Oct 2011

7×97 Posts
Default

Quote:
Originally Posted by Bdot View Post
Yes, you're right - if it is reproducible at all.

bcp19, could you please rerun one of the slow exponents, just to make sure it is something in mfakto? If it is slow again, then I'd like to know what Windows you're running, and which Catalyst version so I can setup the same ...
Ok, reruning 29504443 which was 56 min. I'm running Win 7 and the driver under device manager says 8.892.0.0, which I think is the latest version, 12.1?
bcp19 is offline   Reply With Quote
Old 2012-02-02, 01:29   #376
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·67·73 Posts
Default

Quote:
Originally Posted by bcp19 View Post
Ok, reruning 29504443 which was 56 min. I'm running Win 7 and the driver under device manager says 8.892.0.0, which I think is the latest version, 12.1?
You are both exactly correct -- rerun the unusual in the exact same environment, and see if the results are the same.

Einstein once said "Insanity: doing the same thing over and over again and expecting different results.

Of course, he never believed in quantum undertainty; and certainly had never encountered Windows....
chalsall is online now   Reply With Quote
Old 2012-02-02, 01:53   #377
bcp19
 
bcp19's Avatar
 
Oct 2011

2A716 Posts
Default

Quote:
Originally Posted by chalsall View Post
You are both exactly correct -- rerun the unusual in the exact same environment, and see if the results are the same.

Einstein once said "Insanity: doing the same thing over and over again and expecting different results.

Of course, he never believed in quantum undertainty; and certainly had never encountered Windows....
Too true. Exp complete, 46 minutes. So some stray protons or neutrons must have been flying around causing time to warp on my 4th core.
bcp19 is offline   Reply With Quote
Old 2012-02-02, 07:28   #378
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3·199 Posts
Default

Quote:
Originally Posted by bcp19 View Post
Ok, reruning 29504443 which was 56 min. I'm running Win 7 and the driver under device manager says 8.892.0.0, which I think is the latest version, 12.1?
Thanks, I should be able to run the same and see if I can find out what's up.

Edit: Oops, did not see this before:
Quote:
Originally Posted by bcp19
Too true. Exp complete, 46 minutes. So some stray protons or neutrons must have been flying around causing time to warp on my 4th core.
Was that the same exponent again (a third time)? So we have 56m 20.353s, 56m and 46m? Sorry, I'm a bit confused ...

Last fiddled with by Bdot on 2012-02-02 at 07:35
Bdot is offline   Reply With Quote
Old 2012-02-02, 16:33   #379
bcp19
 
bcp19's Avatar
 
Oct 2011

67910 Posts
Default

Quote:
Originally Posted by Bdot View Post
Thanks, I should be able to run the same and see if I can find out what's up.

Edit: Oops, did not see this before:

Was that the same exponent again (a third time)? So we have 56m 20.353s, 56m and 46m? Sorry, I'm a bit confused ...
I only ran it twice. If you look close, I said I was rerunning the exp "which was 56 min".
bcp19 is offline   Reply With Quote
Old 2012-02-02, 21:23   #380
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3×199 Posts
Question File locks for worktodo and results

Quote:
Originally Posted by bcp19 View Post
I only ran it twice. If you look close, I said I was rerunning the exp "which was 56 min".
Sorry, my poor English had made me think this meant that the rerun took 56 min. Probably one of the occasions when it becomes obvious that I'm not a native English speaker ...

Anyway, thanks for the test - it seems the case can be blamed on Windows (or other applications running there), after all.

I have a question for the scripters among you. In the next mfakto version I plan to add file locking for worktodo and results files. While on Windows all APIs seems to boil down to the same underlying locking mechanism, on Linux we have fcntl/lockf and flock locks which are independent. In case you have scripts or programs for Linux to maintain worktodo and results files (such as Chalsall's Submission Spider), would you consider synchronizing file accesses with mfakto? Do you have preferences which one to use? Is anyone accessing these files over NFS? Any other reasons why I should use one or the other? Of course I will provide these changes to Oliver when I got the locking to work, so that mfaktc can get the same.
Bdot is offline   Reply With Quote
Old 2012-02-02, 21:45   #381
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 Bdot View Post
Sorry, my poor English had made me think this meant that the rerun took 56 min. Probably one of the occasions when it becomes obvious that I'm not a native English speaker ...
FWIW, you've managed to get by me for *checks join date* 8 months. I only just now looked at your location.
Dubslow is offline   Reply With Quote
Old 2012-02-03, 14:23   #382
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×67×73 Posts
Default

Quote:
Originally Posted by Bdot View Post
I have a question for the scripters among you. In the next mfakto version I plan to add file locking for worktodo and results files. While on Windows all APIs seems to boil down to the same underlying locking mechanism, on Linux we have fcntl/lockf and flock locks which are independent. In case you have scripts or programs for Linux to maintain worktodo and results files (such as Chalsall's Submission Spider), would you consider synchronizing file accesses with mfakto? Do you have preferences which one to use?
This would be excellent. And it doesn't really matter which is used, just so long as everyone agrees to use the same one (which would effectively be defined by you). Perl (and, of course, C) can do any of them. fcntl is more powerful, but in this case lockf would be just fine (and is a little easier to use).

Quote:
Is anyone accessing these files over NFS? Any other reasons why I should use one or the other? Of course I will provide these changes to Oliver when I got the locking to work, so that mfaktc can get the same.
I know at least a few people are using NFS, so I would suggest in addition to the locking, you also consider implementing the same functionality as Prime95/mprime's worktodo.add feature. This would allow scripts to add work to mfakto with no risks, even on NFS, as it would be mfakto which would be the sole writer of the file.

I asked for this feature on the mfaktc thread; don't know if it was added to a todo list. Since you're looking at working at related functionality, could you consider doing so? I would then write a reservation spider to complement it (actually two, one for PrimeNet, and one for GPU72).

Last fiddled with by chalsall on 2012-02-03 at 14:26 Reason: Added observation of fcntl being more powerful.
chalsall is online now   Reply With Quote
Old 2012-02-03, 18:00   #383
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts
Default

FWIW, I like being able to modify the worktodo without having to worry about mfatk*. I only check to make sure it's not close to finishing an assignment, which is the only time it writes files. When would it lock the file? All the time? (I personally find it a pain to have to stop MPrime to modify worktodo, especially if I have S2 P-1 going. From what I can tell, most of the changes I typically make would not be possible with worktodo.add, e.g. adding only in sequence only whenver MPrime feels like looking at the file.)
Dubslow is offline   Reply With Quote
Old 2012-02-03, 20:02   #384
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×67×73 Posts
Default

Quote:
Originally Posted by Dubslow View Post
FWIW, I like being able to modify the worktodo without having to worry about mfatk*. I only check to make sure it's not close to finishing an assignment, which is the only time it writes files.
Or, depending on the settings, when it (randomly) finds a factor, which you cannot predict.

Quote:
Originally Posted by Dubslow View Post
From what I can tell, most of the changes I typically make would not be possible with worktodo.add, e.g. adding only in sequence only whenver MPrime feels like looking at the file.)
But you are exceptional (with all meanings of the word intended ).

Most would find this function useful....
chalsall is online now   Reply With Quote
Old 2012-02-03, 22:35   #385
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

1C3516 Posts
Default

Well then make the file locking a user option?
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mfaktc: a CUDA program for Mersenne prefactoring TheJudger GPU Computing 3498 2021-08-06 21:07
gpuOwL: an OpenCL program for Mersenne primality testing preda GpuOwl 2719 2021-08-05 22:43
LL with OpenCL msft GPU Computing 433 2019-06-23 21:11
OpenCL for FPGAs TObject GPU Computing 2 2013-10-12 21:09
Program to TF Mersenne numbers with more than 1 sextillion digits? Stargate38 Factoring 24 2011-11-03 00:34

All times are UTC. The time now is 22:33.


Fri Aug 6 22:33:48 UTC 2021 up 14 days, 17:02, 1 user, load averages: 4.18, 3.77, 3.43

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.