Changes between Version 5 and Version 6 of AppMultiThread


Ignore:
Timestamp:
Nov 20, 2007, 2:30:44 PM (16 years ago)
Author:
Nicolas
Comment:

m

Legend:

Unmodified
Added
Removed
Modified
  • AppMultiThread

    v5 v6  
    5353}}}
    5454
    55 An application calls boinc_target_nthreads() periodically,
     55An application calls {{{boinc_target_nthreads()}}} periodically,
    5656at points where it is able to change its number of threads.
    57 It calls boinc_actual_nthreads() to report its actual number of threads.
     57It calls {{{boinc_actual_nthreads()}}} to report its actual number of threads.
    5858
    5959A WU DB record can specify "max average ncpus",
    6060an estimate of Ncpus(A) on a host with arbitrarily many CPUs.
    61 This is used
    62 by the client and scheduler to estimate completion time.
     61This is used by the client and scheduler to estimate completion time.
    6362
    6463== Implementation ==
    6564
    6665Shared-memory messages:
    67  * core->app (process control channel): <target_nthreads>
    68  * app->core (process control channel): <actual_nthreads>
     66 * core->app (process control channel): {{{<target_nthreads>}}}
     67 * app->core (process control channel): {{{<actual_nthreads>}}}
    6968
    70 Client maintains estimates of CPU effiency per job,
    71 uses this to scale target_nthreads.
     69Client maintains estimates of CPU efficiency per job,
     70uses this to scale {{{target_nthreads}}}.
    7271
    7372
    74 Implementation (enforce_schedule()):
    75 as we schedule jobs, decrement CPU count by scaled actual_nthreads.
    76 rr_simulation() needs to be modified too.
     73Implementation ({{{enforce_schedule()}}}):
     74as we schedule jobs, decrement CPU count by scaled {{{actual_nthreads}}}.
     75{{{rr_simulation()}}} needs to be modified too.