Explorar el Código

tests/perfmodels/valid_model.c: set model type before calling starpu_perfmodel_load_symbol(), otherwise model might not be properly initialised

Nathalie Furmento hace 12 años
padre
commit
dbe578af51
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      tests/perfmodels/valid_model.c

+ 1 - 0
tests/perfmodels/valid_model.c

@@ -75,6 +75,7 @@ static int submit(struct starpu_codelet *codelet, struct starpu_perfmodel *model
 
 	old_nsamples = 0;
 	lmodel.is_init=0;
+	lmodel.type = model->type;
 	ret = starpu_perfmodel_load_symbol(codelet->model->symbol, &lmodel);
 	if (ret != 1)
 		for (archtype = 0; archtype < STARPU_NARCH; archtype++)