ソースを参照

Reduce execution time on valgrind

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