瀏覽代碼

Reduce lu execution time in valgrind

Samuel Thibault 5 年之前
父節點
當前提交
1f574e6942
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      examples/lu/lu_example.c

+ 9 - 0
examples/lu/lu_example.c

@@ -26,6 +26,10 @@
 #include "xlu.h"
 #include "xlu_kernels.h"
 
+#ifdef STARPU_HAVE_VALGRIND_H
+#include <valgrind/valgrind.h>
+#endif
+
 static unsigned long size = 0;
 static unsigned nblocks = 0;
 static unsigned check = 0;
@@ -344,6 +348,11 @@ int main(int argc, char **argv)
 		nblocks = 8*power_cbrt;
 #endif
 
+#ifdef STARPU_HAVE_VALGRIND_H
+	if (RUNNING_ON_VALGRIND)
+		size = 16;
+#endif
+
 	parse_args(argc, argv);
 
 	starpu_cublas_init();