Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8145265f authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Fix #92

Needs StarPU commit 7b21ab4e50e34f0e92823610f8152d1dfa19b8eb to be effective.

StarPU configuration key `ncpus` is overridden only if Chameleon's user provided a specific value (with `-t` parameter for instance). This allows to keep the value of the environment variable `STARPU_NCPU`, if defined.

(ping @furmento)

See merge request !194
parents bf808f73 46b26052
No related branches found
No related tags found
1 merge request!194Override StarPU's number of CPU only if provided by Chameleon's user
......@@ -76,7 +76,9 @@ int RUNTIME_init( CHAM_context_t *chamctxt,
return 0;
}
conf->ncpus = ncpus;
if (ncpus != -1) {
conf->ncpus = ncpus;
}
conf->ncuda = ncudas;
conf->nopencl = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment