Skip to content

Commit

Permalink
more script bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Mar 5, 2024
1 parent 0291fb5 commit f7a6b7c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions CI/physmon/phys_perf_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd
histcmp_results=$outdir/histcmp_results.csv
echo -n "" > $histcmp_results

SPYRAL_BIN=${SPYRAL_BIN:=spyral}

memory_dir=${outdir}/memory
mkdir -p "$memory_dir"

if [ "$(uname)" == "Darwin" ]; then
function measure {
label=$1
shift
slug=$2
shift
echo "Measure Darwin $label"
shift
echo "Measure Darwin $label ($slug)" >&2
tmp=$(mktemp)
echo "+ $@" >&2
/usr/bin/time -l -o "$tmp" "$@"
Expand All @@ -66,10 +64,10 @@ if [ "$(uname)" == "Darwin" ]; then
elif [ "$(uname)" == "Linux" ]; then
function measure {
label=$1
shift
slug=$2
shift
echo "Measure Linux $label"
shift
echo "Measure Linux $label ($slug)" >&2
tmp=$(mktemp)
echo "+ $@" >&2
/usr/bin/time -v -o "$tmp" "$@"
Expand Down Expand Up @@ -124,8 +122,6 @@ function run_physmon_gen() {
else
echo "::notice::✅ Dataset generation succeeded: ${script}"
fi

run $SPYRAL_BIN plot $outdir/memory/mem_${slug}.csv --output $outdir/memory
}

echo "::group::Generate validation dataset"
Expand Down

0 comments on commit f7a6b7c

Please sign in to comment.