Browse Source

Ignore STARPU_NCPU while tasks_size_overhead is making measurements

Samuel Thibault 8 years ago
parent
commit
27326d377a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      tests/microbenchs/tasks_size_overhead.c

+ 7 - 0
tests/microbenchs/tasks_size_overhead.c

@@ -171,6 +171,13 @@ int main(int argc, char **argv)
 	starpu_shutdown();
 #endif
 
+#ifdef STARPU_HAVE_UNSETENV
+	/* That was useful to force the max number of cpus to use, but now we
+	 * want to make it vary */
+	unsetenv("STARPU_NCPUS");
+	unsetenv("STARPU_NCPU");
+#endif
+
 	parse_args(argc, argv);
 
 	float *buffers[total_nbuffers?total_nbuffers:1];