Browse Source

Really reduce cholesky execution time in valgrind

Samuel Thibault 5 years ago
parent
commit
23d9071678
1 changed files with 5 additions and 5 deletions
  1. 5 5
      examples/cholesky/cholesky.h

+ 5 - 5
examples/cholesky/cholesky.h

@@ -146,11 +146,6 @@ static inline void init_sizes(void)
 	if (!nbigblocks_p)
 	if (!nbigblocks_p)
 		nbigblocks_p = 4*power_cbrt;
 		nbigblocks_p = 4*power_cbrt;
 #endif
 #endif
-
-#ifdef STARPU_HAVE_VALGRIND_H
-       if (RUNNING_ON_VALGRIND)
-	       size_p = 16;
-#endif
 }
 }
 
 
 static unsigned pinned_p = 1;
 static unsigned pinned_p = 1;
@@ -281,6 +276,11 @@ static void parse_args(int argc, char **argv)
 			exit(0);
 			exit(0);
 		}
 		}
 	}
 	}
+
+#ifdef STARPU_HAVE_VALGRIND_H
+       if (RUNNING_ON_VALGRIND)
+	       size_p = 16;
+#endif
 }
 }
 
 
 #endif /* __DW_CHOLESKY_H__ */
 #endif /* __DW_CHOLESKY_H__ */