瀏覽代碼

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

Nathalie Furmento 9 年之前
父節點
當前提交
42de89f9e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 }