Procházet zdrojové kódy

src/core/perfmodel/perfmodel_history.c: starpu_perfmodel_init can be called even if the model does not define a symbol

Nathalie Furmento před 10 roky
rodič
revize
c5dfa54187
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/core/perfmodel/perfmodel_history.c

+ 2 - 2
src/core/perfmodel/perfmodel_history.c

@@ -653,10 +653,10 @@ static void initialize_model_with_file(FILE*f, struct starpu_perfmodel *model)
 
 void starpu_perfmodel_init(struct starpu_perfmodel *model)
 {
-	STARPU_ASSERT(model && model->symbol);
-
 	int already_init;
 
+	STARPU_ASSERT(model);
+
 	STARPU_PTHREAD_RWLOCK_RDLOCK(&registered_models_rwlock);
 	already_init = model->is_init;
 	STARPU_PTHREAD_RWLOCK_UNLOCK(&registered_models_rwlock);