瀏覽代碼

bandwidth: Fix test when environment variables are set

Samuel Thibault 4 年之前
父節點
當前提交
a5464854d3
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;