Kaynağa Gözat

mic (perfmodels): Change initialize_model() model to use total number of devices and not actual numbr of devices

Thibaud Lambert 11 yıl önce
ebeveyn
işleme
191df466c2
1 değiştirilmiş dosya ile 5 ekleme ve 7 silme
  1. 5 7
      src/core/perfmodel/perfmodel_history.c

+ 5 - 7
src/core/perfmodel/perfmodel_history.c

@@ -624,11 +624,11 @@ void initialize_model_without_conf(struct starpu_perfmodel* model, int dev_cpu,
 void initialize_model(struct starpu_perfmodel *model)
 {
 	struct _starpu_machine_config *conf = _starpu_get_machine_config();
-	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); 
+	initialize_model_without_conf(model,1,&conf->topology.nhwcpus,
+			conf->topology.nhwcudagpus,NULL,
+			conf->topology.nhwopenclgpus,NULL,
+			conf->topology.nhwmicdevices,conf->topology.nhwmiccores,
+			conf->topology.nhwscc,NULL); 
 }
 
 void initialize_model_with_file(FILE*f, struct starpu_perfmodel *model)
@@ -822,8 +822,6 @@ void _starpu_deinitialize_performance_model(struct starpu_perfmodel *model)
 {
 	unsigned arch, devid, ncore, nimpl;
 
-	_STARPU_DEBUG("\n\n#####\nDeinit:%p\n#####\n\n",model);
-		
 	if(model->per_arch != NULL)
 	{
 		for (arch = 0; arch < STARPU_NARCH; arch++)