瀏覽代碼

Really fix execution on machines with gpus

Samuel Thibault 4 年之前
父節點
當前提交
e95146cb61
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/main/job.c

+ 2 - 2
tests/main/job.c

@@ -64,8 +64,8 @@ int main(void)
 	starpu_conf_init(&conf);
 	conf.precedence_over_environment_variables = 1;
 	starpu_conf_noworker(&conf);
-	conf.ncpus = 1;
-	ret = starpu_init(NULL);
+	conf.ncpus = -1;
+	ret = starpu_init(&conf);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");