浏览代码

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

Cédric Augonnet 15 年之前
父节点
当前提交
e3ca8477e7
共有 1 个文件被更改,包括 3 次插入1 次删除
  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 *);