Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f4bf8f17 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

move init of starpu parameters in a single place (RUNTIME_init_scheduler) and...

move init of starpu parameters in a single place (RUNTIME_init_scheduler) and use dmdas default scheduling strategy
parent 7aeb7243
No related branches found
No related tags found
No related merge requests found
...@@ -38,15 +38,6 @@ void RUNTIME_context_create( MORSE_context_t *morse ) ...@@ -38,15 +38,6 @@ void RUNTIME_context_create( MORSE_context_t *morse )
conf = morse->schedopt; conf = morse->schedopt;
starpu_conf_init( conf ); starpu_conf_init( conf );
conf->nopencl = 0;
/* By default, use the dmda strategy */
if (!getenv("STARPU_SCHED"))
conf->sched_policy_name = "dmda";
/* By default, enable calibration */
if (!getenv("STARPU_CALIBRATE"))
conf->calibrate = 1;
return; return;
} }
......
...@@ -46,6 +46,15 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int nworkers, int ncudas, in ...@@ -46,6 +46,15 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int nworkers, int ncudas, in
conf->ncpus = nworkers; conf->ncpus = nworkers;
conf->ncuda = ncudas; conf->ncuda = ncudas;
conf->nopencl = 0;
/* By default, use the dmdas strategy */
if (!getenv("STARPU_SCHED"))
conf->sched_policy_name = "dmdas";
/* By default, enable calibration */
if (!getenv("STARPU_CALIBRATE"))
conf->calibrate = 1;
/* Set scheduling to "ws" if no cuda devices used because it behaves better /* Set scheduling to "ws" if no cuda devices used because it behaves better
* on homognenous architecture. If the user wants to use another * on homognenous architecture. If the user wants to use another
......
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