Browse Source

src/datawizard/memalloc.c: print message when trying to reclaim memory. It will not be printed if environment variable STARPU_SILENT is set

Nathalie Furmento 11 years ago
parent
commit
d339c20e4a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/datawizard/memalloc.c

+ 5 - 0
src/datawizard/memalloc.c

@@ -650,6 +650,11 @@ size_t _starpu_memory_reclaim_generic(unsigned node, unsigned force, size_t recl
 {
 	size_t freed = 0;
 
+	if (reclaim)
+	{
+		_STARPU_DISP("Not enough memory left. Trying to purge some data out\n");
+	}
+
 	/* remove all buffers for which there was a removal request */
 	freed += flush_memchunk_cache(node, reclaim);