From b98ae9dfc51de18cdefe835649da879fbea61536 Mon Sep 17 00:00:00 2001 From: Hans Pabst Date: Tue, 9 Jul 2024 16:12:27 +0200 Subject: [PATCH] ocl: fixed, improved and relocated script * Improved printing FAILED cases. --- src/acc/opencl/{acc_opencl_test.sh => smm/opencl_test.sh} | 2 +- src/acc/opencl/smm/tune_multiply.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) rename src/acc/opencl/{acc_opencl_test.sh => smm/opencl_test.sh} (97%) diff --git a/src/acc/opencl/acc_opencl_test.sh b/src/acc/opencl/smm/opencl_test.sh similarity index 97% rename from src/acc/opencl/acc_opencl_test.sh rename to src/acc/opencl/smm/opencl_test.sh index 03d6ba0300c..3760efdcac2 100755 --- a/src/acc/opencl/acc_opencl_test.sh +++ b/src/acc/opencl/smm/opencl_test.sh @@ -10,7 +10,7 @@ HERE="$(cd "$(dirname "$0")" && pwd -P)" TEST=acc_bench_smm -EXE=${HERE}/../${TEST} +EXE=${HERE}/../../${TEST} if [ ! -e "$1" ]; then >&2 echo "USAGE: $0 logfile" diff --git a/src/acc/opencl/smm/tune_multiply.py b/src/acc/opencl/smm/tune_multiply.py index b0dbc3f3cda..40af0740e0d 100755 --- a/src/acc/opencl/smm/tune_multiply.py +++ b/src/acc/opencl/smm/tune_multiply.py @@ -301,6 +301,8 @@ def run(self, desired_result, input, limit): str(self.run_result["stdout"]), ) else: + if not returncode: + returncode = "?" performance = None if performance and performance.group(1) and performance.group(2): mseconds = float(performance.group(1)) @@ -322,7 +324,8 @@ def run(self, desired_result, input, limit): if not self.args.verbose else runcmd ) - print("FAILED ({}): {}".format(returncode, failed), flush=True) + mnk = "x".join(map(str, self.mnk)) + print("FAILED-{} ({}): {}".format(returncode, mnk, failed), flush=True) return Result(time=float("inf"), accuracy=0.0, size=100.0) def update_jsons(self, filenames):