Bläddra i källkod

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

Nathalie Furmento 11 år sedan
förälder
incheckning
dbe578af51
1 ändrade filer med 1 tillägg och 0 borttagningar
  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++)