Browse Source

perfmodel: partly revert r7054

   move define
     #define starpu_per_arch_perfmodel starpu_perfmodel_per_arch
   from include/starpu_deprecated_api.h to include/starpu_perfmodel.h

   include/starpu_deprecated_api.h should only be used to define old
   types as they were defined in versions older than 1.0
Nathalie Furmento 12 years ago
parent
commit
b62e089dac
2 changed files with 3 additions and 3 deletions
  1. 1 3
      include/starpu_deprecated_api.h
  2. 2 0
      include/starpu_perfmodel.h

+ 1 - 3
include/starpu_deprecated_api.h

@@ -39,13 +39,11 @@ typedef struct starpu_multiformat_interface starpu_multiformat_interface_t;
 #define starpu_buffer_descr_t starpu_buffer_descr
 #define starpu_buffer_descr_t starpu_buffer_descr
 #define starpu_history_list_t starpu_history_list
 #define starpu_history_list_t starpu_history_list
 #define starpu_regression_model_t starpu_regression_model
 #define starpu_regression_model_t starpu_regression_model
+#define starpu_per_arch_perfmodel_t starpu_per_arch_perfmodel
 #define starpu_perfmodel_t starpu_perfmodel
 #define starpu_perfmodel_t starpu_perfmodel
 #define starpu_sched_policy_s starpu_sched_policy
 #define starpu_sched_policy_s starpu_sched_policy
 #define starpu_data_interface_ops_t starpu_data_interface_ops
 #define starpu_data_interface_ops_t starpu_data_interface_ops
 
 
-#define starpu_per_arch_perfmodel_t starpu_per_arch_perfmodel
-#define starpu_per_arch_perfmodel starpu_perfmodel_per_arch
-
 typedef struct starpu_buffer_descr starpu_buffer_descr;
 typedef struct starpu_buffer_descr starpu_buffer_descr;
 typedef struct starpu_codelet starpu_codelet;
 typedef struct starpu_codelet starpu_codelet;
 typedef struct starpu_codelet starpu_codelet_t;
 typedef struct starpu_codelet starpu_codelet_t;

+ 2 - 0
include/starpu_perfmodel.h

@@ -141,6 +141,8 @@ struct starpu_perfmodel_regression_model
 
 
 struct starpu_perfmodel_history_table;
 struct starpu_perfmodel_history_table;
 
 
+#define starpu_per_arch_perfmodel starpu_perfmodel_per_arch
+
 struct starpu_perfmodel_per_arch
 struct starpu_perfmodel_per_arch
 {
 {
 	double (*cost_model)(struct starpu_buffer_descr *t) STARPU_DEPRECATED; /* returns expected duration in µs */
 	double (*cost_model)(struct starpu_buffer_descr *t) STARPU_DEPRECATED; /* returns expected duration in µs */