Преглед на файлове

Merge branch 'master' of gitlab.inria.fr:starpu/starpu into fpga

Samuel Thibault преди 4 години
родител
ревизия
5540f81895
променени са 4 файла, в които са добавени 7 реда и са изтрити 2 реда
  1. 1 0
      src/core/workers.c
  2. 1 0
      src/profiling/bound.c
  3. 4 2
      tests/datawizard/manual_reduction.c
  4. 1 0
      tests/datawizard/partition_dep.c

+ 1 - 0
src/core/workers.c

@@ -1200,6 +1200,7 @@ int starpu_conf_noworker(struct starpu_conf *conf)
 	conf->nfpga = 0;
 	conf->nmic = 0;
 	conf->nmpi_ms = 0;
+	return 0;
 }
 
 static void _starpu_conf_set_value_against_environment(char *name, int *value, int precedence_over_env)

+ 1 - 0
src/profiling/bound.c

@@ -235,6 +235,7 @@ static void initialize_duration(struct bound_task *task)
 	task->duration[STARPU_CUDA_WORKER] = initialize_arch_duration(conf->topology.nhwcudagpus,NULL);
 	task->duration[STARPU_OPENCL_WORKER] = initialize_arch_duration(conf->topology.nhwopenclgpus,NULL);
 	task->duration[STARPU_MIC_WORKER] = initialize_arch_duration(conf->topology.nhwmicdevices,conf->topology.nmiccores);
+	task->duration[STARPU_MPI_MS_WORKER] = initialize_arch_duration(conf->topology.nhwmpidevices,conf->topology.nmpicores);
 }
 
 static struct starpu_perfmodel_device device =

+ 4 - 2
tests/datawizard/manual_reduction.c

@@ -206,8 +206,10 @@ int main(int argc, char **argv)
 	struct starpu_conf conf;
 
 	starpu_conf_init(&conf);
-	conf.nmic = 0;
-	conf.nmpi_ms = 0;
+	starpu_conf_noworker(&conf);
+	conf.ncpus = -1;
+	conf.ncuda = -1;
+	conf.nopencl = -1;
 
 	variable = INIT_VALUE;
 

+ 1 - 0
tests/datawizard/partition_dep.c

@@ -98,6 +98,7 @@ int main(int argc, char **argv)
         return ret;
 
 enodev:
+	starpu_data_unpartition(handle, STARPU_MAIN_RAM);
 	starpu_data_unregister(handle);
 	fprintf(stderr, "WARNING: No one can execute this task\n");
 	/* yes, we do not perform the computation but we did detect that no one