浏览代码

Fix gpu_partition test in default profile

Samuel Thibault 8 年之前
父节点
当前提交
db447b8bb8
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      examples/sched_ctx/gpu_partition.c

+ 6 - 0
examples/sched_ctx/gpu_partition.c

@@ -110,6 +110,12 @@ int main(int argc, char **argv)
 	int ncuda = 0;
 	int gpu_devid = -1;
 
+#ifndef STARPU_HAVE_SETENV
+	return STARPU_TEST_SKIPPED;
+#endif
+	/* Request separate threads for streams */
+	setenv("STARPU_ONE_THREAD_PER_STREAM", "1");
+
 	/* Initialize StarPU */
 	ret = starpu_init(NULL);
 	if (ret == -ENODEV)