Ver código fonte

doc/doxygen/chapters/code/disk_copy.c: use setenv instead of putenv, this is more valgrind friendly

Nathalie Furmento 11 anos atrás
pai
commit
e8a8200fc9
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      doc/doxygen/chapters/code/disk_copy.c

+ 1 - 1
doc/doxygen/chapters/code/disk_copy.c

@@ -35,7 +35,7 @@ int main(int argc, char **argv)
 	double * A,*B,*C,*D,*E,*F;
 
 	/* limit main ram to force to push in disk */
-	putenv("STARPU_LIMIT_CPU_MEM=160");
+	setenv("STARPU_LIMIT_CPU_MEM", "160", 1);
 
 	/* Initialize StarPU with default configuration */
 	int ret = starpu_init(NULL);