Quellcode durchsuchen

rename environment variable STARPU_MEMORY_STATS to STARPU_MEMORY_STATUS

Nathalie Furmento vor 12 Jahren
Ursprung
Commit
03d7790e83
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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
 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
-environment variable @code{STARPU_MEMORY_STATS} when running the
+environment variable @code{STARPU_MEMORY_STATUS} when running the
 application.
 
 For example, if you do not unregister data at the end of the complex
 example, you will get something similar to:
 
 @example
-$ STARPU_MEMORY_STATS=1 ./examples/interface/complex
+$ STARPU_MEMORY_STATUS=1 ./examples/interface/complex
 ...
 Memory status :
 #-------

+ 1 - 1
src/datawizard/memalloc.c

@@ -962,7 +962,7 @@ void _starpu_display_memory_status(void)
 	unsigned node;
 	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, "Memory status :\n");