ソースを参照

Fix build without valgrind

Samuel Thibault 5 年 前
コミット
ed5c7aabe5
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  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)