소스 검색

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 */