Browse Source

julia: Fix perfmodel definition.

phuchant 5 years ago
parent
commit
cef66717b9
1 changed files with 9 additions and 7 deletions
  1. 9 7
      julia/StarPU.jl/src/StarPU.jl

+ 9 - 7
julia/StarPU.jl/src/StarPU.jl

@@ -103,13 +103,14 @@ export StarpuCodelet
 
 
 const jlstarpu_allocated_structures = Vector{Ptr{Cvoid}}([])
 const jlstarpu_allocated_structures = Vector{Ptr{Cvoid}}([])
 @enum(StarpuPerfmodelType,
 @enum(StarpuPerfmodelType,
-    STARPU_PERFMODEL_INVALID = 0,
-	STARPU_PER_ARCH = 1,
-	STARPU_COMMON = 2,
-	STARPU_HISTORY_BASED = 3,
-	STARPU_REGRESSION_BASED = 4,
-	STARPU_NL_REGRESSION_BASED = 5,
-	STARPU_MULTIPLE_REGRESSION_BASED = 6
+      STARPU_PERFMODEL_INVALID = 0,
+      STARPU_PER_WORKER = 1,
+      STARPU_PER_ARCH = 2,
+      STARPU_COMMON = 3,
+      STARPU_HISTORY_BASED = 4,
+      STARPU_REGRESSION_BASED = 5,
+      STARPU_NL_REGRESSION_BASED = 6,
+      STARPU_MULTIPLE_REGRESSION_BASED = 7
 )
 )
 mutable struct StarpuPerfmodel_c
 mutable struct StarpuPerfmodel_c
 
 
@@ -117,6 +118,7 @@ mutable struct StarpuPerfmodel_c
 
 
     cost_function :: Ptr{Cvoid}
     cost_function :: Ptr{Cvoid}
     arch_cost_function :: Ptr{Cvoid}
     arch_cost_function :: Ptr{Cvoid}
+    worker_cost_function :: Ptr{Cvoid}
 
 
     size_base :: Ptr{Cvoid}
     size_base :: Ptr{Cvoid}
     footprint :: Ptr{Cvoid}
     footprint :: Ptr{Cvoid}