svn path=/trunk/boinc/; revision=16731

This commit is contained in:
David Anderson 2008-12-22 00:19:20 +00:00
parent 74423f23b6
commit 2d40b45baa
2 changed files with 4 additions and 1 deletions

View File

@ -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();
}

View File

@ -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;
}