Parcourir la source

tools/starpu_machine_display.c: partially revert #18662, starpu_shutdown() should only be called when starpu_init() found valid workers

Nathalie Furmento il y a 9 ans
Parent
commit
42de89f9e2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tools/starpu_machine_display.c

+ 1 - 1
tools/starpu_machine_display.c

@@ -192,8 +192,8 @@ int main(int argc, char **argv)
 		fprintf(stdout, "\nbandwidth and latency ...\n");
 		starpu_bus_print_bandwidth(stdout);
 
+		starpu_shutdown();
 	}
 
-	starpu_shutdown();
 	return 0;
 }