ソースを参照

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");