mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=16731
This commit is contained in:
parent
74423f23b6
commit
2d40b45baa
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue