瀏覽代碼

mic (perfmodel): Correction intialize -> initialize

Thibaud Lambert 11 年之前
父節點
當前提交
5882863f87

+ 1 - 1
examples/cholesky/cholesky_models.c

@@ -130,7 +130,7 @@ void initialize_chol_model(struct starpu_perfmodel* model, char * symbol,
 		double (*cpu_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned), 
 		double (*cuda_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned))
 {
-	intialize_model(model);
+	initialize_model(model);
 	model.type = STARPU_HISTORY_BASED;
 	model.symbol = symbol;
 	model.per_arch[STARPU_CPU_WORKER][0][0][0].cost_function = cpu_cost_function;

+ 1 - 1
examples/heat/lu_kernels_model.c

@@ -219,7 +219,7 @@ void initialize_chol_model(struct starpu_perfmodel* model, char * symbol,
 		double (*cpu_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned), 
 		double (*cuda_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned))
 {
-	intialize_model(model);
+	initialize_model(model);
 	model.type = STARPU_HISTORY_BASED;
 	model.symbol = symbol;
 	model.cost = cost_function;

+ 1 - 1
sc_hypervisor/examples/cholesky/cholesky_models.c

@@ -130,7 +130,7 @@ void initialize_chol_model(struct starpu_perfmodel* model, char * symbol,
 		double (*cpu_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned), 
 		double (*cuda_cost_function)(struct starpu_task *, struct starpu_perfmodel_arch*, unsigned))
 {
-	intialize_model(model);
+	initialize_model(model);
 	model.type = STARPU_HISTORY_BASED;
 	model.symbol = symbol;
 	model.per_arch[STARPU_CPU_WORKER][0][0][0].cost_function = cpu_cost_function;

+ 2 - 2
src/core/perfmodel/perfmodel_history.c

@@ -600,14 +600,14 @@ static struct starpu_perfmodel_per_arch*** initialize_arch_model(int maxdevid, u
 void initialize_model(struct starpu_perfmodel *model)
 {
 	struct _starpu_machine_config *conf = _starpu_get_machine_config();
-	intialize_model_without_conf(model,1,&conf->topology.ncpus,
+	initialize_model_without_conf(model,1,&conf->topology.ncpus,
 			conf->topology.ncudagpus,NULL,
 			conf->topology.nopenclgpus,NULL,
 			conf->topology.nmicdevices,conf->topology.nmiccores,
 			conf->topology.nsccdevices,NULL); 
 }
 
-void intialize_model_without_conf(struct starpu_perfmodel* model, int dev_cpu, unsigned* core_cpu, int dev_cuda, unsigned* core_cuda, int dev_opencl, unsigned* core_opencl, int dev_mic, unsigned* core_mic, int dev_scc, unsigned* core_scc)
+void initialize_model_without_conf(struct starpu_perfmodel* model, int dev_cpu, unsigned* core_cpu, int dev_cuda, unsigned* core_cuda, int dev_opencl, unsigned* core_opencl, int dev_mic, unsigned* core_mic, int dev_scc, unsigned* core_scc)
 {
 	model->per_arch = malloc(sizeof(*model->per_arch)*(STARPU_NARCH));