Browse Source

bandwidth: Fix test when environment variables are set

Samuel Thibault 4 years ago
parent
commit
a5464854d3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/microbenchs/bandwidth.c

+ 2 - 0
tests/microbenchs/bandwidth.c

@@ -123,6 +123,7 @@ static float bench(int *argc, char ***argv, unsigned nbusy, unsigned ncpus, int
 	float bw;
 
 	starpu_conf_init(&conf);
+	conf.precedence_over_environment_variables = 1;
 	conf.ncuda = 0;
 	conf.nopencl = 0;
 	conf.nmic = 0;
@@ -175,6 +176,7 @@ int main(int argc, char **argv)
 	parse_args(argc, argv);
 
 	starpu_conf_init(&conf);
+	conf.precedence_over_environment_variables = 1;
 	conf.ncuda = 0;
 	conf.nopencl = 0;
 	conf.nmic = 0;