mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-05-23, 13:55   #936
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3·199 Posts
Default

Quote:
Originally Posted by Christenson View Post
This is perfectly good practice, but when I have 30 or 40 hours work involved, I don't like nonzero chances where I don't have to take them!
I played around with the current code on Windows. Stopped the process in a debugger in interesting places (e.g. between writing the checkpoint and closing the file), and then killed the process.

As the write is atomic (a single line shorter than a disk block), I either had the file content of before the write, or the new contents. No corruption. (I know this is no proof, just a test aimed at breaking it.)

Therefore I think that no special signal handling is necessary - as a precaution one or two backup copies of the checkpoint file are sufficient.

prime95 may be a different story as the save files there can be much bigger, so that writes to the file are not atomic. And there I already saw a few times that the latest save file was not usable.

B.
Bdot is offline   Reply With Quote
Old 2011-05-24, 01:25   #937
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

111000000112 Posts
Default

Quote:
Originally Posted by jasonp View Post
Win32 has a limited range of signals you can install a handler for; even then, the handler runs once only. Hitting Ctrl-C will run your SIGINT handler; hitting it again will kill your program, without running the handler.
Fine for purposes of mfaktc, but what about those Windows programs that simply won't be shut down, especially as you TRY to shut down the system nicely?
Christenson is offline   Reply With Quote
Old 2011-05-24, 04:06   #938
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by Christenson View Post
Fine for purposes of mfaktc, but what about those Windows programs that simply won't be shut down, especially as you TRY to shut down the system nicely?
Oh, you mean the virus', worms and other malware?

Quote:
Originally Posted by Christenson View Post
The inability to stop a program in an operating system indicates a problem with the operating system.
You said it, not me....
chalsall is online now   Reply With Quote
Old 2011-05-25, 08:25   #939
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11×101 Posts
Default

Hi Jason,

Quote:
Originally Posted by jasonp View Post
Win32 has a limited range of signals you can install a handler for; even then, the handler runs once only. Hitting Ctrl-C will run your SIGINT handler; hitting it again will kill your program, without running the handler.
Is this specific to Win32? On my Windows 7 64bit box I can run it multiple times. The difference to Linux is that you have to register your signal handler again (BSD style).

e.g.
Code:
void my_signal_handler(int signum)
/* very simple signal handler */
{
#ifdef WINDOWS
  signal(signum, &my_signal_handler);
#endif
  ...
}

int main()
{
  signal(SIGINT, &my_signal_handler);
  ...
}
Of course this is not perfect...

Oliver
TheJudger is offline   Reply With Quote
Old 2011-05-25, 11:34   #940
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5·359 Posts
Default

Oliver:
Let's do a simple sample program, "sigtest", that sleeps and says either "don't touch me, I'm sleeping!" or "It's OK, I'm awake" on Ctrl-C, and then says "exiting" on the second Ctrl-C. All printing is from the main loop. I can test Linux64 and Win32.

E.
Christenson is offline   Reply With Quote
Old 2011-05-28, 15:37   #941
diamonddave
 
diamonddave's Avatar
 
Feb 2004

A016 Posts
Default

I've been playing on my new computer with mfakt for a week or 2, right now I'm at 311 candidates tested. Most of them from 69 to 70 bit, and a small batch from 68 to 69 bit. And I haven't found 1 factor yet, where on average I should have found something along 4 or 5.

I'm starting to think there might be some problem with my hardware: i5-2500k not overclocked with a GTX 560, only running one instance of mfakt.

I'm testing exponent in the 54-55XXXXXX range, does anyone have a candidate in that range with a 69 bit factor, it would help me have better confidence in my hardware.

Or maybe someone already tested to that bit-level in that range while only submitting factor found?

Thanks in advance,
diamonddave is offline   Reply With Quote
Old 2011-05-28, 15:44   #942
diep
 
diep's Avatar
 
Sep 2006
The Netherlands

36 Posts
Default

Quote:
Originally Posted by diamonddave View Post
I've been playing on my new computer with mfakt for a week or 2, right now I'm at 311 candidates tested. Most of them from 69 to 70 bit, and a small batch from 68 to 69 bit. And I haven't found 1 factor yet, where on average I should have found something along 4 or 5.

I'm starting to think there might be some problem with my hardware: i5-2500k not overclocked with a GTX 560, only running one instance of mfakt.

I'm testing exponent in the 54-55XXXXXX range, does anyone have a candidate in that range with a 69 bit factor, it would help me have better confidence in my hardware.

Or maybe someone already tested to that bit-level in that range while only submitting factor found?

Thanks in advance,
Could you post the candidate list you tried?

Thanks,
Vincent
diep is offline   Reply With Quote
Old 2011-05-28, 15:48   #943
diamonddave
 
diamonddave's Avatar
 
Feb 2004

25×5 Posts
Default

Quote:
Originally Posted by diep View Post
Could you post the candidate list you tried?
Sure thing
Attached Files
File Type: txt result.txt (25.9 KB, 122 views)
diamonddave is offline   Reply With Quote
Old 2011-05-28, 17:40   #944
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

111110 Posts
Default

Quote:
Originally Posted by diamonddave View Post
I've been playing on my new computer with mfakt for a week or 2, right now I'm at 311 candidates tested. Most of them from 69 to 70 bit, and a small batch from 68 to 69 bit. And I haven't found 1 factor yet, where on average I should have found something along 4 or 5.

I'm starting to think there might be some problem with my hardware: i5-2500k not overclocked with a GTX 560, only running one instance of mfakt.

I'm testing exponent in the 54-55XXXXXX range, does anyone have a candidate in that range with a 69 bit factor, it would help me have better confidence in my hardware.
First of all you could run the full selftest (mfaktc.exe -st).

M54789601 has one known factor between 267 and 268
M54790157 has one known factor between 269 and 270
hint: http://mersenne.org/report_exponent/

Oliver
TheJudger is offline   Reply With Quote
Old 2011-05-29, 13:19   #945
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

34038 Posts
Default

It's worth noting that the ranges we are now getting for TF from primenet are now beyond optimal for CPU-only TF, so we can expect the AVERAGE GHz-days effort per factor found to match or exceed that of 2 LL tests, or about O(200) GHz days for exponents in the 50M range.
Christenson is offline   Reply With Quote
Old 2011-06-06, 16:07   #946
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2×23×179 Posts
Default

This morning we discovered that two of our eight workers had transferred all of their remaining worktodo.txt contents to their results.txt files and thus were idle.

Xyzzy is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
mfakto: an OpenCL program for Mersenne prefactoring Bdot GPU Computing 1676 2021-06-30 21:23
The P-1 factoring CUDA program firejuggler GPU Computing 753 2020-12-12 18:07
gr-mfaktc: a CUDA program for generalized repunits prefactoring MrRepunit GPU Computing 32 2020-11-11 19:56
mfaktc 0.21 - CUDA runtime wrong keisentraut Software 2 2020-08-18 07:03
World's second-dumbest CUDA program fivemack Programming 112 2015-02-12 22:51

All times are UTC. The time now is 13:28.


Mon Aug 2 13:28:06 UTC 2021 up 10 days, 7:57, 0 users, load averages: 1.99, 1.98, 1.99

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.