Browse Source

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 years ago
parent
commit
7667ff35f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/starpu_perfmodel_display.c

+ 1 - 1
tools/starpu_perfmodel_display.c

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