We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b175045 commit ff95d92Copy full SHA for ff95d92
mlir/utils/tuna/tuna-script.sh
@@ -59,13 +59,12 @@ validate_tuning_file() {
59
echo "ERROR: $f has duplicate header lines next to each other!"
60
exit 1
61
fi
62
- # NOTE: Temporarily disabled the check for data lines after the header.
63
- # Existing checks
64
- #data_line=$(awk 'NR>1 && $0 !~ /^\s*$/ && $0 != header {print; exit}' header="$header" "$f")
65
- #if [ -z "$data_line" ]; then
66
- # echo "ERROR: $f has no data after header!"
67
- # exit 1
68
- #fi
+ # Check for the presence of data after header
+ data_line=$(awk 'NR>1 && $0 !~ /^\s*$/ && $0 != header {print; exit}' header="$header" "$f")
+ if [ -z "$data_line" ]; then
+ echo "ERROR: $f has no data after header!"
+ exit 1
+ fi
69
}
70
71
function tuna_run
0 commit comments