Explorar o código

acquire_release : make ntasks depend upon how fast the machine is.

Cyril Roelandt %!s(int64=13) %!d(string=hai) anos
pai
achega
02acaf65d8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/datawizard/acquire_release.c

+ 4 - 0
tests/datawizard/acquire_release.c

@@ -19,7 +19,11 @@
 #include <starpu.h>
 #include "../helper.h"
 
+#ifdef STARPU_SLOW_MACHINE
 static unsigned ntasks = 10;
+#else
+static unsigned ntasks = 10000;
+#endif
 
 #ifdef STARPU_USE_CUDA
 extern void increment_cuda(void *descr[], __attribute__ ((unused)) void *_args);