Skip to content

Commit

Permalink
Add first version of advisor script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohn123 committed Dec 6, 2024
1 parent 954c8a2 commit 02b7939
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions advisor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!advisor.sh
!.gitignore
9 changes: 9 additions & 0 deletions advisor/advisor.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 02b7939

Please sign in to comment.