Selaa lähdekoodia

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

Nathalie Furmento 13 vuotta sitten
vanhempi
commit
f92431ba7c
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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 */