Explorar o código

poor-man documentation for different cost models

Samuel Thibault %!s(int64=15) %!d(string=hai) anos
pai
achega
f4b3869c19
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      include/starpu_perfmodel.h

+ 6 - 1
include/starpu_perfmodel.h

@@ -85,7 +85,12 @@ struct starpu_per_arch_perfmodel_t {
 #endif
 };
 
-typedef enum {STARPU_PER_ARCH, STARPU_COMMON, STARPU_HISTORY_BASED, STARPU_REGRESSION_BASED} starpu_perfmodel_type;
+typedef enum {
+	STARPU_PER_ARCH,	/* Application-provided per-arch cost model function */
+	STARPU_COMMON,		/* Application-provided common cost model function, with per-arch factor */
+	STARPU_HISTORY_BASED,	/* Automatic history-based cost model */
+	STARPU_REGRESSION_BASED	/* Automatic history-based regression cost model */
+} starpu_perfmodel_type;
 
 struct starpu_perfmodel_t {
 	/* which model is used for that task ? */