Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion test/smoke-limbo/launch_latency/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CLANG ?= clang
OMP_BIN = $(AOMP)/bin/$(CLANG)
CC = $(OMP_BIN) $(VERBOSE)
RUNENV = ulimit -s unlimited;
RUNCMD = $(AOMPHIP)/bin/rocprofv3 --output-format csv --kernel-trace --stats -- ./$(TESTNAME) && python3 printLatency.py
RUNCMD = bash ./run_launch_latency.sh $(AOMPHIP)

#-ccc-print-phases
#"-\#\#\#"
Expand Down
20 changes: 20 additions & 0 deletions test/smoke-limbo/launch_latency/run_launch_latency.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# rocprofv3 messages go to rocprofv3.log.
# Print that log only when this run fails, and keep the failing status.

aomphip=$1
log=rocprofv3.log

exit_with_log() {
status=$1
if [ "$status" -ne 0 ]; then
cat "$log"
exit "$status"
fi
}

"$aomphip/bin/rocprofv3" --output-format csv --kernel-trace --stats -- ./launch_latency 2>"$log"
exit_with_log $?

python3 printLatency.py
exit_with_log $?
Loading