![]() |
|
|
#1 |
|
Oct 2012
Altona Victoria
11002 Posts |
Is there a way of setting a runtime limit for msieve? I would like msieve_run to work at factoring a number for a set time and to then either return the result if it finds one within that time or send an appropriate message if it does not find one within the time limit.
|
|
|
|
|
|
#2 |
|
Tribal Bullet
Oct 2004
3,541 Posts |
Using the -d switch for the demo binary will trigger an interrupt after a fixed number of seconds.
|
|
|
|
|
|
#3 |
|
Oct 2012
Altona Victoria
22·3 Posts |
Thanks Jason. That looks promising. I'll try to adapt it to my situation.
|
|
|
|
|
|
#4 | |
|
"Curtis"
Feb 2005
Riverside, CA
113758 Posts |
Quote:
The time to factor roughly doubles every 5 digits for GNFS. You can run just a couple of full factorizations to measure the speed of your setup and get a very good idea of how long msieve will take on any number (say, under 150 digits) you feed it. Are you sure you want to slap a deadline on the program, when you may be 80% complete with the factorization and could have known that without wasting the runtime you spend? |
|
|
|
|
|
|
#5 |
|
Oct 2012
Altona Victoria
11002 Posts |
Thanks for your reply Curtis. I am using msieve for instructional purposes where it is not too important that a result is found. It is more important for the user to know that the program will terminate after a set time.
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gpuowl: runtime error | SELROC | GpuOwl | 59 | 2020-10-02 03:56 |
| runtime question | yoyo | YAFU | 1 | 2015-01-08 07:07 |
| Predicting QS and NFS runtime | jasonp | Factoring | 2 | 2011-03-07 01:22 |
| gmp-ecm needed memory and runtime | yoyo | GMP-ECM | 7 | 2010-04-09 16:48 |
| ECM Runtime and F20 | D. B. Staple | Factoring | 11 | 2007-12-12 16:52 |