Browse Source

rename environment variable STARPU_MEMORY_STATS to STARPU_MEMORY_STATUS

Nathalie Furmento 12 years ago
parent
commit
03d7790e83
2 changed files with 3 additions and 3 deletions
  1. 2 2
      doc/chapters/perf-feedback.texi
  2. 1 1
      src/datawizard/memalloc.c

+ 2 - 2
doc/chapters/perf-feedback.texi

@@ -442,14 +442,14 @@ It is possible to display memory usage at the end of the
 execution of your application. It allows to check all data allocated
 execution of your application. It allows to check all data allocated
 by StarPU have been cleared. To do so, you need to pass the option
 by StarPU have been cleared. To do so, you need to pass the option
 @code{--enable-memory-status} when running configure, and to set the
 @code{--enable-memory-status} when running configure, and to set the
-environment variable @code{STARPU_MEMORY_STATS} when running the
+environment variable @code{STARPU_MEMORY_STATUS} when running the
 application.
 application.
 
 
 For example, if you do not unregister data at the end of the complex
 For example, if you do not unregister data at the end of the complex
 example, you will get something similar to:
 example, you will get something similar to:
 
 
 @example
 @example
-$ STARPU_MEMORY_STATS=1 ./examples/interface/complex
+$ STARPU_MEMORY_STATUS=1 ./examples/interface/complex
 ...
 ...
 Memory status :
 Memory status :
 #-------
 #-------

+ 1 - 1
src/datawizard/memalloc.c

@@ -962,7 +962,7 @@ void _starpu_display_memory_status(void)
 	unsigned node;
 	unsigned node;
 	const char *status;
 	const char *status;
 
 
-	if ((status = getenv("STARPU_MEMORY_STATS")) && atoi(status))
+	if ((status = getenv("STARPU_MEMORY_STATUS")) && atoi(status))
 	{
 	{
 		fprintf(stderr, "\n#---------------------\n");
 		fprintf(stderr, "\n#---------------------\n");
 		fprintf(stderr, "Memory status :\n");
 		fprintf(stderr, "Memory status :\n");