Changes between Version 18 and Version 19 of AppMultiThread


Ignore:
Timestamp:
Mar 20, 2008, 9:27:21 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppMultiThread

    v18 v19  
    3232 * Link the following function into your scheduler:
    3333{{{
    34 bool app_plan(HOST& host, const char* plan_class, HOST_USAGE& hu) {
     34bool app_plan(SCHEDULER_REQUEST& sreq, const char* plan_class, HOST_USAGE& hu) {
    3535    if (!strcmp(plan_class, "par16")) {
    3636        if (host.ncpus < 16) {
    37             hu.ncpus = host.ncpus;
    38             hu.flops = host.p_fpops*host.p_ncpus;
     37            hu.ncpus = sreq.host.ncpus;
     38            hu.flops = sreq.host.p_fpops*sreq.host.p_ncpus;
    3939        } else {
    4040            hu.ncpus = 16;
    41             hu.flops = host.p_fpops*16;
     41            hu.flops = sreq.host.p_fpops*16;
    4242        }
    4343        return true;