Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions bin/patches/ovo.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/ovo.sh b/ovo.sh
index 2da7d7ca..0f83db48 100755
--- a/ovo.sh
+++ b/ovo.sh
@@ -10,6 +10,8 @@ fclean() { for dir in $(find_tests_folder $@); do make --silent -C "$dir" clean;
frun() {
SYNC=$(make -v | head -n1 | awk '$NF >= 4 {print "--output-sync"}')
if [ -n "$SYNC" ]; then NPROC=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null); fi
+ # Set wide terminal width to prevent line wrapping in compiler timing output
+ export COLUMNS=1000
export MAKEFLAGS="${MAKEFLAGS:--j${NPROC:-1} $SYNC}"

for dir in $(find_tests_folder $@); do
@@ -24,9 +26,9 @@ frun() {
set +x
} &> "$nresult"/env.log
# Compile in parallel
- make --no-print-directory -C "$dir" exe 2>&1 | tee "$nresult"/compilation.log
+ COLUMNS=1000 make --no-print-directory -C "$dir" exe 2>&1 | tee "$nresult"/compilation.log
# But Run serially
- make -j1 --no-print-directory -C "$dir" run 2>&1 | tee "$nresult"/runtime.log
+ COLUMNS=1000 make -j1 --no-print-directory -C "$dir" run 2>&1 | tee "$nresult"/runtime.log
done
}

1 change: 1 addition & 0 deletions bin/patches/patch-control-file_23.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ rocprofiler: rocprofiler-combined-no-aql-ok-fix-cov6.patch
babelstream: babelstream-usm.patch
llvm-project: ATD_ASO_full.patch
UMT: umt.patch
OvO: ovo.patch
6 changes: 6 additions & 0 deletions bin/run_ovo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ OMP_TARGET_OFFLOAD=mandatory

export AOMP AOMP_GPU PATH CXX FC FFLAGS CXXFLAGS OMP_TARGET_OFFLOAD

# Apply OvO patch before running tests
patchrepo "$AOMP_REPOS_TEST/$AOMP_OVO_REPO_NAME"

cd $AOMP_REPOS_TEST/$AOMP_OVO_REPO_NAME
rm -f ovo.run.log*
HALF_THREADS=$(( AOMP_JOB_THREADS/2 ))
Expand All @@ -46,3 +49,6 @@ if [ "$1" == "log" ]; then
./ovo.sh report --failed 2>&1 | tee $log
./ovo.sh report --passed 2>&1 | tee -a $log
fi

# Remove patch after test execution
removepatch "$AOMP_REPOS_TEST/$AOMP_OVO_REPO_NAME"
Loading