Browse Source

Reduce execution time on valgrind

Samuel Thibault 5 years ago
parent
commit
c0957dd0c3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/tag_example/tag_example.c

+ 6 - 0
examples/tag_example/tag_example.c

@@ -222,6 +222,12 @@ int main(int argc, char **argv)
 {
 	int ret;
 
+	if (RUNNING_ON_VALGRIND) {
+		ni /= 2;
+		nj /= 2;
+		nk /= 2;
+	}
+
 	ret = starpu_init(NULL);
 	if (ret == -ENODEV)
 		exit(77);