From 02b79390c68fc909265f8b0c1f911646b74c00a5 Mon Sep 17 00:00:00 2001 From: Alexander Sohn Date: Fri, 6 Dec 2024 17:54:07 +0100 Subject: [PATCH] Add first version of advisor script. --- advisor/.gitignore | 3 +++ advisor/advisor.sh | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 advisor/.gitignore create mode 100755 advisor/advisor.sh diff --git a/advisor/.gitignore b/advisor/.gitignore new file mode 100644 index 0000000..70bd454 --- /dev/null +++ b/advisor/.gitignore @@ -0,0 +1,3 @@ +* +!advisor.sh +!.gitignore \ No newline at end of file diff --git a/advisor/advisor.sh b/advisor/advisor.sh new file mode 100755 index 0000000..e09360b --- /dev/null +++ b/advisor/advisor.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +for file in ../build/bin/*; do + # extract filename from path + filename=$(basename $file) + + echo -e "\tRunning $filename" + /opt/intel/oneapi/advisor/2024.1/bin64/advisor -collect roofline -trip-counts -flop -module-filter-mode=exclude -mrte-mode=auto -interval=10 -data-limit=500 -stackwalk-mode=offline -stack-unwind-limit=8388608 -stack-stitching -mkl-user-mode -no-profile-python -no-support-multi-isa-binaries -no-spill-analysis -no-static-instruction-mix -auto-finalize -show-report -no-profile-gpu -gpu-sampling-interval=1 -profile-intel-perf-libs --app-working-dir="$(pwd)/working_dir" --project-dir="./${filename}" -- "$(pwd)/../build/bin/${filename}" "${filename}" +done