From e91141527a920a2c5a2b31312353fce0e3d0534e Mon Sep 17 00:00:00 2001 From: Jeff Fifield Date: Wed, 23 Oct 2024 08:22:24 -0600 Subject: [PATCH] Don't pollute source tree during lit testing (#1871) --- .../matrix_multiplication/matrix_vector/run_makefile.lit | 2 ++ .../matrix_vector/run_makefile_chess.lit | 2 ++ .../basic/matrix_multiplication/single_core/run_makefile.lit | 4 ++-- .../matrix_multiplication/single_core/run_makefile_1.lit | 4 ++-- .../matrix_multiplication/single_core/run_makefile_alt.lit | 4 ++-- .../matrix_multiplication/single_core/run_makefile_chess.lit | 2 ++ .../matrix_multiplication/single_core/run_makefile_i8.lit | 4 ++-- .../matrix_multiplication/whole_array/run_makefile_1_col.lit | 4 ++-- .../matrix_multiplication/whole_array/run_makefile_2_col.lit | 4 ++-- .../matrix_multiplication/whole_array/run_makefile_4_col.lit | 4 ++-- .../whole_array/run_makefile_4_col_i8.lit | 4 ++-- .../matrix_multiplication/whole_array/run_makefile_chess.lit | 2 ++ .../whole_array/run_makefile_col_maj.lit | 4 ++-- 13 files changed, 26 insertions(+), 18 deletions(-) diff --git a/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile.lit b/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile.lit index cdae3657a2..d863fa83b5 100644 --- a/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile.lit +++ b/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile.lit @@ -3,6 +3,8 @@ // // REQUIRES: ryzen_ai, peano // +// RUN: mkdir -p test +// RUN: cd test // RUN: make -f %S/Makefile clean // RUN: make -f %S/Makefile // RUN: %run_on_npu make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile_chess.lit b/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile_chess.lit index 1e6a64cf1f..eceaeb29da 100644 --- a/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile_chess.lit +++ b/programming_examples/basic/matrix_multiplication/matrix_vector/run_makefile_chess.lit @@ -3,6 +3,8 @@ // // REQUIRES: ryzen_ai, chess // +// RUN: mkdir -p test_chess +// RUN: cd test_chess // RUN: make -f %S/Makefile.chess clean // RUN: make -f %S/Makefile.chess // RUN: %run_on_npu make -f %S/Makefile.chess run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/single_core/run_makefile.lit b/programming_examples/basic/matrix_multiplication/single_core/run_makefile.lit index 00e62e1362..ea8e36967c 100644 --- a/programming_examples/basic/matrix_multiplication/single_core/run_makefile.lit +++ b/programming_examples/basic/matrix_multiplication/single_core/run_makefile.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_1 -// RUN: cd %S/test_1 +// RUN: mkdir -p test_1 +// RUN: cd test_1 // RUN: make -f %S/Makefile clean // RUN: make -f %S/Makefile // RUN: %run_on_npu make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_1.lit b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_1.lit index 76e86dad05..918c571937 100644 --- a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_1.lit +++ b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_1.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_2 -// RUN: cd %S/test_2 +// RUN: mkdir -p test_2 +// RUN: cd test_2 // RUN: make -f %S/Makefile clean // RUN: env M=768 K=512 N=512 m=64 k=64 n=64 dtype_in=i16 dtype_out=i16 make -f %S/Makefile // RUN: %run_on_npu env M=768 K=512 N=512 m=64 k=64 n=64 dtype_in=i16 dtype_out=i16 make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_alt.lit b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_alt.lit index c5a0ff383d..de5fce7f7e 100644 --- a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_alt.lit +++ b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_alt.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_alt -// RUN: cd %S/test_alt +// RUN: mkdir -p test_alt +// RUN: cd test_alt // RUN: make -f %S/Makefile clean // RUN: env use_alt=1 make -f %S/Makefile // RUN: %run_on_npu env use_alt=1 make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_chess.lit b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_chess.lit index 1e6a64cf1f..eceaeb29da 100644 --- a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_chess.lit +++ b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_chess.lit @@ -3,6 +3,8 @@ // // REQUIRES: ryzen_ai, chess // +// RUN: mkdir -p test_chess +// RUN: cd test_chess // RUN: make -f %S/Makefile.chess clean // RUN: make -f %S/Makefile.chess // RUN: %run_on_npu make -f %S/Makefile.chess run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_i8.lit b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_i8.lit index cc457ddb59..652c1640e3 100644 --- a/programming_examples/basic/matrix_multiplication/single_core/run_makefile_i8.lit +++ b/programming_examples/basic/matrix_multiplication/single_core/run_makefile_i8.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_i8 -// RUN: cd %S/test_i8 +// RUN: mkdir -p test_i8 +// RUN: cd test_i8 // RUN: make -f %S/Makefile clean // RUN: env dtype_in=i8 dtype_out=i8 m=64 k=128 n=64 M=512 K=512 N=512 make -f %S/Makefile // RUN: %run_on_npu env dtype_in=i8 dtype_out=i8 m=64 k=128 n=64 M=512 K=512 N=512 make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_1_col.lit b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_1_col.lit index db6bbcce1a..b18f39b9e1 100644 --- a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_1_col.lit +++ b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_1_col.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_1_col -// RUN: cd %S/test_1_col +// RUN: mkdir -p test_1_col +// RUN: cd test_1_col // RUN: make -f %S/Makefile clean // RUN: env n_aie_cols=1 make -f %S/Makefile // RUN: %run_on_npu env n_aie_cols=2 make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_2_col.lit b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_2_col.lit index 7bfcfffa15..242f4f461d 100644 --- a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_2_col.lit +++ b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_2_col.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_2_col -// RUN: cd %S/test_2_col +// RUN: mkdir -p test_2_col +// RUN: cd test_2_col // RUN: make -f %S/Makefile clean // RUN: env n_aie_cols=2 make -f %S/Makefile // RUN: %run_on_npu env n_aie_cols=2 make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col.lit b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col.lit index b101683158..db30294afa 100644 --- a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col.lit +++ b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_4_col -// RUN: cd %S/test_4_col +// RUN: mkdir -p test_4_col +// RUN: cd test_4_col // RUN: make -f %S/Makefile clean // RUN: env n_aie_cols=4 make -f %S/Makefile // RUN: %run_on_npu env n_aie_cols=4 make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col_i8.lit b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col_i8.lit index 011bc05005..785c258ccc 100644 --- a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col_i8.lit +++ b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_4_col_i8.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_4_col_i8 -// RUN: cd %S/test_4_col_i8 +// RUN: mkdir -p test_4_col_i8 +// RUN: cd test_4_col_i8 // RUN: make -f %S/Makefile clean // RUN: env n_aie_cols=4 dtype_in=i8 dtype_out=i8 M=512 K=512 N=512 m=64 k=128 n=64 make -f %S/Makefile // RUN: %run_on_npu env n_aie_cols=4 dtype_in=i8 dtype_out=i8 M=512 K=512 N=512 m=64 k=128 n=64 make -f %S/Makefile run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_chess.lit b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_chess.lit index 1e6a64cf1f..eceaeb29da 100644 --- a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_chess.lit +++ b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_chess.lit @@ -3,6 +3,8 @@ // // REQUIRES: ryzen_ai, chess // +// RUN: mkdir -p test_chess +// RUN: cd test_chess // RUN: make -f %S/Makefile.chess clean // RUN: make -f %S/Makefile.chess // RUN: %run_on_npu make -f %S/Makefile.chess run | FileCheck %s diff --git a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_col_maj.lit b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_col_maj.lit index 5bfdf7bdfe..24c67aeee4 100644 --- a/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_col_maj.lit +++ b/programming_examples/basic/matrix_multiplication/whole_array/run_makefile_col_maj.lit @@ -3,8 +3,8 @@ // // REQUIRES: ryzen_ai, peano // -// RUN: mkdir -p %S/test_b_col_maj -// RUN: cd %S/test_b_col_maj +// RUN: mkdir -p test_b_col_maj +// RUN: cd test_b_col_maj // RUN: make -f %S/Makefile clean // RUN: env n_aie_cols=4 b_col_maj=1 dtype_in=bf16 dtype_out=f32 M=256 K=256 N=256 m=32 k=32 n=32 make -f %S/Makefile // RUN: %run_on_npu env n_aie_cols=4 b_col_maj=1 dtype_in=bf16 dtype_out=f32 M=256 K=256 N=256 m=32 k=32 n=32 make -f %S/Makefile run | FileCheck %s