Browse Source

C++ (and therefore nvcc) requires that we don't use anonymous enum types.

Cédric Augonnet 15 years ago
parent
commit
e3ca8477e7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/starpu-perfmodel.h

+ 3 - 1
include/starpu-perfmodel.h

@@ -82,9 +82,11 @@ struct starpu_per_arch_perfmodel_t {
 #endif
 };
 
+typedef enum {PER_ARCH, COMMON, HISTORY_BASED, REGRESSION_BASED} starpu_perfmodel_type;
+
 struct starpu_perfmodel_t {
 	/* which model is used for that task ? */
-	enum {PER_ARCH, COMMON, HISTORY_BASED, REGRESSION_BASED} type;
+	starpu_perfmodel_type type;
 
 	/* single cost model */
 	double (*cost_model)(struct starpu_buffer_descr_t *);