From 2d40b45baafe22ba61f15d826216e45eb205886f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 22 Dec 2008 00:19:20 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=16731 --- sched/handle_request.cpp | 3 +++ sched/sched_send.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sched/handle_request.cpp b/sched/handle_request.cpp index 3781cf7233..3ca91aa9e5 100644 --- a/sched/handle_request.cpp +++ b/sched/handle_request.cpp @@ -1207,6 +1207,9 @@ void process_request(char* code_sign_key) { } else { lock_sema(); have_no_work = ssp->no_work(g_pid); + if (have_no_work) { + g_wreq->no_jobs_available = true; + } unlock_sema(); } diff --git a/sched/sched_send.cpp b/sched/sched_send.cpp index 58a414d115..ebc0e05306 100644 --- a/sched/sched_send.cpp +++ b/sched/sched_send.cpp @@ -87,7 +87,7 @@ inline int effective_ncpus() { if (ncpus > config.max_ncpus) ncpus = config.max_ncpus; if (ncpus < 1) ncpus = 1; if (config.have_cuda_apps) { - COPROC* cp = g_request->coprocs.lookup("cuda"); + COPROC* cp = g_request->coprocs.lookup("CUDA"); if (cp && cp->count > ncpus) { ncpus = cp->count; }