Mentions légales du service

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

Cleanup some todo

parent cfff03f3
No related branches found
No related tags found
No related merge requests found
...@@ -48,27 +48,29 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int ncpus, int ncudas, int n ...@@ -48,27 +48,29 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int ncpus, int ncudas, int n
conf->ncuda = ncudas; conf->ncuda = ncudas;
conf->nopencl = 0; conf->nopencl = 0;
/* By default, use the dmdas strategy */
if (!getenv("STARPU_SCHED"))
conf->sched_policy_name = "dmdas";
/* By default, enable calibration */ /* By default, enable calibration */
if (!getenv("STARPU_CALIBRATE")) if (!getenv("STARPU_CALIBRATE"))
conf->calibrate = 1; conf->calibrate = 1;
/* Set scheduling to "ws" if no cuda devices used because it behaves better /* By default, use the dmdas strategy */
* on homognenous architecture. If the user wants to use another if (!getenv("STARPU_SCHED")) {
* scheduling strategy, he can set STARPU_SCHED env. var. to whatever he if (conf->ncuda > 0) {
* wants conf->sched_policy_name = "dmdas";
* TODO: discuss this with ManuMathieu }
* reference, we should use "lws" strategy else {
*/ /**
if ( !getenv("STARPU_SCHED") && conf->ncuda == 0) * Set scheduling to "ws"/"lws" if no cuda devices used because it
#if STARPU_MAJOR_VERSION > 1 || (STARPU_MAJOR_VERSION == 1 && STARPU_MINOR_VERSION >= 2) * behaves better on homogneneous architectures. If the user wants
conf->sched_policy_name = "lws"; * to use another scheduling strategy, he can set STARPU_SCHED
* env. var. to whatever he wants
*/
#if (STARPU_MAJOR_VERSION > 1) || ((STARPU_MAJOR_VERSION == 1) && (STARPU_MINOR_VERSION >= 2))
conf->sched_policy_name = "lws";
#else #else
conf->sched_policy_name = "ws"; conf->sched_policy_name = "ws";
#endif #endif
}
}
if ((ncpus == -1)||(nthreads_per_worker == -1)) if ((ncpus == -1)||(nthreads_per_worker == -1))
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment