Browse Source

perf_knobs_03: Fix test termination when using mpich and non-supported number of cores

Samuel Thibault 4 years ago
parent
commit
b779d21574
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/perf_steering/perf_knobs_03.c

+ 1 - 0
examples/perf_steering/perf_knobs_03.c

@@ -61,6 +61,7 @@ int main(int argc, char **argv)
 		|| starpu_mic_worker_get_count() != 0
 		|| starpu_mpi_ms_worker_get_count() != 0)
 	{
+		starpu_shutdown();
 		fprintf(stderr, "example needs exactly two cpu cores.\n");
 		return 77;
 	}