浏览代码

tests/datawizard/interfaces/test_interfaces.c: do not test asynchronous copies when they are disabled

Nathalie Furmento 13 年之前
父节点
当前提交
f92431ba7c
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tests/datawizard/interfaces/test_interfaces.c

+ 5 - 0
tests/datawizard/interfaces/test_interfaces.c

@@ -589,6 +589,11 @@ out:
 static void
 run_async(void)
 {
+	int async = starpu_disable_asynchronous_copy();
+	if (async == 1) {
+		FPRINTF(stderr, "Asynchronous copies have been disabled\n");
+		return;
+	}
 #ifdef STARPU_USE_CUDA
 	run_cuda(1);
 #endif /* !STARPU_USE_CUDA */