Skip to content
Closed
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
12 changes: 9 additions & 3 deletions linpack/linpack_run
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
# This script automates the execution of linpack. It will determine the
# set of default run parameters based on the system configuration.
#

rtc=0
error_exit()
{
echo $1
Expand All @@ -38,6 +40,8 @@ usage()
}

test_name="linpack"
results_file="results_${test_name}.csv"

if [ ! -f "/tmp/${test_name}.out" ]; then
command="${0} $@"
echo $command
Expand Down Expand Up @@ -319,8 +323,10 @@ if [ $use_pbench_version -eq 1 ]; then
copy_pbench_data
else
if [ $to_pbench -eq 0 ]; then
${curdir}/test_tools/save_results --curdir $curdir --home_root $to_home_root --results linpack_results/results.csv --test_name $test_name --tuned_setting=$to_tuned_setting --version NONE --user $to_user --other_files "linpack_results/test_results_report,${curdir}/hw_info.out"

$TOOLS_BIN/csv_to_json $to_json_flags --csv_file linpack_results/${results_file} --output_file ${test_name}.json
$TOOLS_BIN/verify_results $to_verify_flags --file ${test_name}.json --schema_file $run_dir/result_schema.py --class_name LinpackResults
rtc=$?
${curdir}/test_tools/save_results --curdir $curdir --home_root $to_home_root --results linpack_results/$results_file --test_name $test_name --tuned_setting=$to_tuned_setting --version NONE --user $to_user --other_files "*.json,linpack_results/test_results_report,${curdir}/hw_info.out"
fi
fi
exit 0
exit $rtc
8 changes: 8 additions & 0 deletions linpack/result_schema.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pydantic
class LinpackResults(pydantic.BaseModel):
ht_config: str = pydantic.Field(description="hyperthread config")
sockets: int = pydantic.Field(description="How many sockets being used.", gt=0)
threads: int = pydantic.Field(description="How many threads we ran", gt=0)
unit: str = pydantic.Field(description="unit of the results")
results: int = pydantic.Field(description="Reported linpack results", gt=0)
cpu_affin: str = pydantic.Field(description="Affinity of the cpus")
Loading