![]() |
|
|
#386 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
@George: Could you please add this feature when you have a moment.
Basic use-case is in a fully scripted Colab / Kaggle environment. It would be nice having a setting (probably in prime.txt) which causes mprime to exit when worktodo.txt is empty. Rather than it continuing to run, consuming 0% of the CPU, while it watches worktodo.txt for more work. Some of my scripts watch worktodo.txt and SIGINTs mprime when it becomes empty. But in some designs it would be much easier if we could just "`./mprime`;" (Perl; "!./mprime" in Python) and then loop around and fetch more work and feed it to a new run of mprime. |
|
|
|
|
|
#387 | |
|
P90 years forever!
Aug 2002
Yeehaw, FL
5×11×137 Posts |
Quote:
Are you expecting mprime to first get work and populate worktodo.txt and run until it is empty? Or are you pre-populating worktodo.txt and running mprime until worktodo.txt is empty? Is this option only for one-worker mprime runs? |
|
|
|
|
|
|
#388 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
Quote:
Not quite sure what you mean by this. The workflow would be a new compute instance (nominally a Colab or Kaggle run) is the host for an ephemeral mprime run. Work in the worktodo.txt file is to be processed by mprime, and then mprime exits. It would then be up to the instance's "bootstrap" code to fetch more work, place it in worktodo.txt, and then mprime is launched again. I hope that makes sense. Thanks for considering this. |
|
|
|
|
|
|
#389 |
|
Jun 2003
2·3·7·112 Posts |
My personal use case has two Worker threads (each with approximately same amount of work). So, the instance would quit if _all_ of the workers are empty.
I suppose, the feature is applicable only if: a) UsePrimenet = 0 (this is the kaggle/colab) OR b) UsePrimenet = 1 and NoMoreWork = 1 (and worktodo.add is not there/empty??) (regular GIMPS, but we want to stop work, and quit the instance as well). |
|
|
|
|
|
#390 | |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
9,767 Posts |
Quote:
In the Colab / Kaggle Notebook instances, if a GPU is attached the CPU available is only a single core (HT enabled). Kaggle offers two CPU cores (again HT enabled) when running CPU only. So, only one worker. Edit: Oh, and it would be fine if mprime reported back to Primenet before exiting. In my use-case I'll proxy it if needed. Last fiddled with by chalsall on 2019-11-04 at 14:34 |
|
|
|
|
|
|
#391 |
|
"/X\(‘-‘)/X\"
Jan 2013
293010 Posts |
This would also be nice for automated benchmarking.
|
|
|
|
|
|
#392 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
11101011011112 Posts |
Exit when out of work: Please try build 29.8 build 7. I did not test this, let me know if it works or could be improved upon. New feature is described in undoc.txt.
|
|
|
|
|
|
#393 |
|
If I May
"Chris Halsall"
Sep 2002
Barbados
976710 Posts |
|
|
|
|
|
|
#394 |
|
Mar 2019
B716 Posts |
|
|
|
|
|
|
#395 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
5×11×137 Posts |
If the feature works and someone needs the source. Do you need it?
Last fiddled with by Prime95 on 2019-11-04 at 23:50 |
|
|
|
|
|
#396 |
|
Jun 2003
2·3·7·112 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime95 version 29.2 | Prime95 | Software | 71 | 2017-09-16 16:55 |
| Prime95 version 29.1 | Prime95 | Software | 95 | 2017-08-22 22:46 |
| Prime95 version 26.5 | Prime95 | Software | 175 | 2011-04-04 22:35 |
| Prime95 version 25.9 | Prime95 | Software | 143 | 2010-01-05 22:53 |
| Prime95 version 25.8 | Prime95 | Software | 159 | 2009-09-21 16:30 |