瀏覽代碼

tools/starpu_perfmodel_display.c: redefine variable as static and global, defining it locally leads to a segfault. That needs to be investigated, in the meantime, fix the code that it does not crash

Nathalie Furmento 13 年之前
父節點
當前提交
7667ff35f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/starpu_perfmodel_display.c

+ 1 - 1
tools/starpu_perfmodel_display.c

@@ -29,6 +29,7 @@
 #include <windows.h>
 #endif
 
+static struct starpu_perfmodel model;
 #define PROGNAME "starpu_perfmodel_display"
 
 /* display all available models */
@@ -383,7 +384,6 @@ int main(int argc, char **argv)
         }
         else
 	{
-		struct starpu_perfmodel model;
                 int ret = starpu_load_history_debug(symbol, &model);
                 if (ret == 1)
 		{