Browse Source

Fix build without valgrind

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

+ 2 - 0
examples/tag_example/tag_example.c

@@ -222,11 +222,13 @@ int main(int argc, char **argv)
 {
 	int ret;
 
+#ifdef STARPU_HAVE_HELGRIND_H
 	if (RUNNING_ON_VALGRIND) {
 		ni /= 2;
 		nj /= 2;
 		nk /= 2;
 	}
+#endif
 
 	ret = starpu_init(NULL);
 	if (ret == -ENODEV)