Skip to content

Commit

Permalink
even better autotuner
Browse files Browse the repository at this point in the history
  • Loading branch information
xspanger3770 committed Apr 18, 2024
1 parent 894b5ce commit 68d4b3f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions GQHypocenterSearch/autotune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
BLOCK_HYPOCS_VALUES=(32 64 128 224 256 264 280 324 360 384 442 512 1024)
TILE_VALUES=(1 2 3 4 5 6 7 8 10 12)

#BLOCK_HYPOCS_VALUES=(32)
#TILE_VALUES=(5)

DEFAULT_TESTS=12
TESTS=${1:-$DEFAULT_TESTS}

Expand Down Expand Up @@ -37,3 +40,14 @@ for BLOCK_HYPOCS in "${BLOCK_HYPOCS_VALUES[@]}"; do
# make clean
done
done

cd ..

highest_value=$(awk -F';' 'NR > 1 {print $3}' "$filename" | sort -n -r | head -n 1)

# Use grep to find the entire row with the highest value in the third column
row=$(grep "$highest_value" "$filename")

echo "Best solution:"
echo "$row"
echo "$row">best_solution.txt

0 comments on commit 68d4b3f

Please sign in to comment.