|
@@ -173,7 +173,7 @@ int starpu_perfmodel_arch_comb_add(int ndevices, struct starpu_perfmodel_device*
|
|
|
return comb;
|
|
|
}
|
|
|
|
|
|
-static void _free_arch_combs(void)
|
|
|
+void _starpu_free_arch_combs(void)
|
|
|
{
|
|
|
int i;
|
|
|
STARPU_PTHREAD_RWLOCK_WRLOCK(&arch_combs_mutex);
|
|
@@ -1340,8 +1340,7 @@ void _starpu_deinitialize_registered_performance_models(void)
|
|
|
|
|
|
STARPU_PTHREAD_RWLOCK_UNLOCK(®istered_models_rwlock);
|
|
|
STARPU_PTHREAD_RWLOCK_DESTROY(®istered_models_rwlock);
|
|
|
- _free_arch_combs();
|
|
|
- starpu_perfmodel_free_sampling_directories();
|
|
|
+ starpu_perfmodel_free_sampling();
|
|
|
}
|
|
|
|
|
|
/* We first try to grab the global lock in read mode to check whether the model
|
|
@@ -2095,7 +2094,7 @@ struct starpu_perfmodel_per_arch *starpu_perfmodel_get_model_per_arch(struct sta
|
|
|
return &model->state->per_arch[comb][impl];
|
|
|
}
|
|
|
|
|
|
-struct starpu_perfmodel_per_arch *_starpu_perfmodel_get_model_per_devices(struct starpu_perfmodel *model, int impl, va_list varg_list)
|
|
|
+static struct starpu_perfmodel_per_arch *_starpu_perfmodel_get_model_per_devices(struct starpu_perfmodel *model, int impl, va_list varg_list)
|
|
|
{
|
|
|
struct starpu_perfmodel_arch arch;
|
|
|
va_list varg_list_copy;
|