Changes between Version 18 and Version 19 of AppMultiThread
- Timestamp:
- Mar 20, 2008, 9:27:21 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AppMultiThread
v18 v19 32 32 * Link the following function into your scheduler: 33 33 {{{ 34 bool app_plan( HOST& host, const char* plan_class, HOST_USAGE& hu) {34 bool app_plan(SCHEDULER_REQUEST& sreq, const char* plan_class, HOST_USAGE& hu) { 35 35 if (!strcmp(plan_class, "par16")) { 36 36 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; 39 39 } else { 40 40 hu.ncpus = 16; 41 hu.flops = host.p_fpops*16;41 hu.flops = sreq.host.p_fpops*16; 42 42 } 43 43 return true;