Parcourir la source

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

Cédric Augonnet il y a 15 ans
Parent
commit
e3ca8477e7
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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 *);