Explorar o código

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

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
f92431ba7c
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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 */