From 077c5ef61d8499e28b8723d25c99191a43ac9332 Mon Sep 17 00:00:00 2001 From: Miguel M Date: Fri, 16 Jun 2023 15:52:37 +0100 Subject: [PATCH] Aux. script to test for compute-bound --- aux/computebound.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 aux/computebound.sh diff --git a/aux/computebound.sh b/aux/computebound.sh new file mode 100644 index 0000000..1e886a9 --- /dev/null +++ b/aux/computebound.sh @@ -0,0 +1,20 @@ +HERE=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +OUTDIR=$(realpath "$HERE/../data/computebound/") +EXE=$(realpath "$HERE/../main.release.exe") +ARGS=(3 3 3 2 64) +CORES=(1 2 3 4 5 6 7 8 9 10 11 12) +CHUNKS=(0 1 2 3 4) +for core in ${CORES[@]} +do + #for chunk in ${CHUNKS[@]} + #do + #INFILE=$(realpath "$HERE/../data/splits/${chunk}_3233_inq.txt") + #OUTFILE="$OUTDIR/core_${core}_"$(basename "$INFILE.txt") + #echo "$EXE ${ARGS[@]} < \"$INFILE\"" | tee --append "$OUTFILE" + #OMP_THREAD_NUM=$core time --portability --append --output="$OUTFILE" "$EXE" "${ARGS[@]}" < "$INFILE" >> "$OUTFILE" + #done + INFILE=$(realpath "$HERE/../data/3233_inq.txt") + OUTFILE="$OUTDIR/core_${core}_$(basename "$INFILE.txt")" + echo "$EXE ${ARGS[@]} < \"$INFILE\"" | tee --append "$OUTFILE" + OMP_THREAD_NUM=$core time --portability --append --output="$OUTFILE" "$EXE" "${ARGS[@]}" < "$INFILE" >> "$OUTFILE" +done \ No newline at end of file