Skip to content

Commit

Permalink
- client: in the job scheduler, there's a check to prevent
Browse files Browse the repository at this point in the history
        overcommitting the CPUs if an MT is scheduled.
        Skip this check for GPU jobs.

    client/
        cpu_sched.cpp

svn path=/branches/boinc_core_release_7_0a/; revision=25836
  • Loading branch information
romw committed Jul 2, 2012
1 parent 45267e1 commit 29b4739
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
8 changes: 8 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -3806,6 +3806,14 @@ David 1 July 2012
work_fetch.cpp,h
scheduler_op.cpp

David 2 July 2012
- client: in the job scheduler, there's a check to prevent
overcommitting the CPUs if an MT is scheduled.
Skip this check for GPU jobs.

client/
cpu_sched.cpp

Rom 27 June 2012
- Tag for 7.0.31 release, all platforms
boinc_core_release_7_0_31
Expand Down
22 changes: 12 additions & 10 deletions client/cpu_sched.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1596,18 +1596,20 @@ bool CLIENT_STATE::enforce_run_list(vector<RESULT*>& run_list) {
}
}

// don't overcommit CPUs if a MT job is scheduled
// Don't overcommit CPUs if a MT job is scheduled.
// Skip this check for GPU jobs.
//
if (scheduled_mt || (rp->avp->avg_ncpus > 1)) {
if (ncpus_used + rp->avp->avg_ncpus > ncpus) {
if (log_flags.cpu_sched_debug) {
msg_printf(rp->project, MSG_INFO,
"[cpu_sched_debug] avoid MT overcommit: skipping %s",
rp->name
);
}
continue;
if (!rp->uses_coprocs()
&& (scheduled_mt || (rp->avp->avg_ncpus > 1))
&& (ncpus_used + rp->avp->avg_ncpus > ncpus)
) {
if (log_flags.cpu_sched_debug) {
msg_printf(rp->project, MSG_INFO,
"[cpu_sched_debug] avoid MT overcommit: skipping %s",
rp->name
);
}
continue;
}

double wss = 0;
Expand Down

0 comments on commit 29b4739

Please sign in to comment.