From 6230a78c9ef832a3c4741cef752df1d66fdf68f0 Mon Sep 17 00:00:00 2001 From: "PoYen, Chen" Date: Tue, 20 Aug 2024 07:54:37 +0000 Subject: [PATCH] Find executable from folder automatically --- example/ck_tile/01_fmha/script/benchmark_bwd.sh | 5 ++--- example/ck_tile/01_fmha/script/benchmark_fwd.sh | 5 ++--- example/ck_tile/01_fmha/script/smoke_test_bwd.sh | 5 ++--- example/ck_tile/01_fmha/script/smoke_test_fwd.sh | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/example/ck_tile/01_fmha/script/benchmark_bwd.sh b/example/ck_tile/01_fmha/script/benchmark_bwd.sh index 7591f5442a..cfd792906c 100755 --- a/example/ck_tile/01_fmha/script/benchmark_bwd.sh +++ b/example/ck_tile/01_fmha/script/benchmark_bwd.sh @@ -1,7 +1,6 @@ #!/bin/sh -# TODO: run this script from CK root -BUILD=build -EXE=$BUILD/bin/tile_example_fmha_bwd +# TODO: run this script from CK root or build directory +EXE="$(find . -name tile_example_fmha_bwd -type f | head -n 1)" VALID=0 for prec in "fp16" "bf16" ; do diff --git a/example/ck_tile/01_fmha/script/benchmark_fwd.sh b/example/ck_tile/01_fmha/script/benchmark_fwd.sh index 859cff9f60..599c595a75 100755 --- a/example/ck_tile/01_fmha/script/benchmark_fwd.sh +++ b/example/ck_tile/01_fmha/script/benchmark_fwd.sh @@ -1,7 +1,6 @@ #!/bin/sh -# TODO: run this script from CK root -BUILD=build -EXE=$BUILD/bin/tile_example_fmha_fwd +# TODO: run this script from CK root or build directory +EXE="$(find . -name tile_example_fmha_fwd -type f | head -n 1)" VALID=0 for prec in "fp16" "bf16" ; do diff --git a/example/ck_tile/01_fmha/script/smoke_test_bwd.sh b/example/ck_tile/01_fmha/script/smoke_test_bwd.sh index dbb592820e..5ba3425e26 100755 --- a/example/ck_tile/01_fmha/script/smoke_test_bwd.sh +++ b/example/ck_tile/01_fmha/script/smoke_test_bwd.sh @@ -1,7 +1,6 @@ #!/bin/sh -# TODO: run this script from CK root -BUILD=build -EXE=$BUILD/bin/tile_example_fmha_bwd +# TODO: run this script from CK root or build directory +EXE="$(find . -name tile_example_fmha_bwd -type f | head -n 1)" KNAME=1 export CK_WARMUP=0 diff --git a/example/ck_tile/01_fmha/script/smoke_test_fwd.sh b/example/ck_tile/01_fmha/script/smoke_test_fwd.sh index 54dc106090..5dcc6ed42b 100755 --- a/example/ck_tile/01_fmha/script/smoke_test_fwd.sh +++ b/example/ck_tile/01_fmha/script/smoke_test_fwd.sh @@ -1,7 +1,6 @@ #!/bin/bash -# TODO: run this script from CK root -BUILD=build -EXE=$BUILD/bin/tile_example_fmha_fwd +# TODO: run this script from CK root or build directory +EXE="$(find . -name tile_example_fmha_fwd -type f | head -n 1)" KNAME=1 export CK_WARMUP=0