Commit f29dea8e authored by David Anderson's avatar David Anderson

- client: bug fix for GPU pref

svn path=/trunk/boinc/; revision=17247
parent 4526c0bb
......@@ -1531,3 +1531,12 @@ David 12 Feb 2009
prefs.inc
lib/
prefs.cpp,h
David 12 Feb 2009
- client: bug fix for GPU pref
client/
cpu_sched.cpp
sim.h
lib/
prefs.cpp
......@@ -685,9 +685,9 @@ void CLIENT_STATE::make_preemptable_task_list(
if (!atp->result->runnable()) continue;
if (atp->result->project->non_cpu_intensive) continue;
if (atp->scheduler_state != CPU_SCHED_SCHEDULED) continue;
if (atp->result->uses_coprocs()) continue;
ncpus_used += atp->app_version->avg_ncpus;
atp->next_scheduler_state = CPU_SCHED_SCHEDULED;
if (atp->result->uses_coprocs()) continue;
preemptable_tasks.push_back(atp);
#if 0
msg_printf(0, MSG_INFO, "%s: misses %d deadline %f finished %d ptr %x",
......@@ -880,8 +880,8 @@ bool CLIENT_STATE::enforce_schedule() {
);
}
// any jobs still in the preemptable list at this point are runnable;
// make sure they don't exceed RAM limits
// There may be jobs still in the preemptable list at this point.
// Let them run if they don't exceed RAM limits
//
for (i=0; i<preemptable_tasks.size(); i++) {
atp = preemptable_tasks[i];
......
......@@ -162,6 +162,7 @@ public:
std::string html_msg;
double share_violation();
double monotony();
bool user_active;
private:
double app_started;
......
......@@ -238,7 +238,6 @@ void GLOBAL_PREFS::defaults() {
void GLOBAL_PREFS::clear_bools() {
run_on_batteries = false;
run_if_user_active = false;
run_gpu_if_user_active = false;
leave_apps_in_memory = false;
confirm_before_connecting = false;
hangup_if_dialed = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment