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