This is an archive of the discontinued LLVM Phabricator instance.

[SPEC2017] Copy reference files to run dir, use for compares.
ClosedPublic

Authored by fhahn on Jul 29 2021, 5:42 AM.

Details

Summary

When running the benchmarks on a different device, we need to copy the
reference files to the device and use the correct path for comparing on
the device.

We copy the output files (and compare files, if exist) to
${RUN_${_run_type}_DIR}/compares, which will be copied over to the
device, if one is configured. This is similar to how input files are
handled.

The validation commands have been updated to use the reference files
from the 'compare' directory in the run directory.

The patch also drops special handling for 'WORKDIR input', which
got translated to the input directory in the source folder. By dropping
all uses of WORKDIR input, the inputs from the run directory are used,
which should work as expected when running the benchmarks locally and on
a remote device.

Diff Detail

Repository
rT test-suite

Event Timeline

fhahn created this revision.Jul 29 2021, 5:42 AM
fhahn requested review of this revision.Jul 29 2021, 5:42 AM
fhahn updated this revision to Diff 362744.Jul 29 2021, 6:07 AM

Update CFP2017 benchmarks.

Meinersbur added inline comments.Jul 29 2021, 11:53 AM
External/SPEC/CINT2017rate/557.xz_r/CMakeLists.txt
25

Why does this need a custom definition of RUN_INPUT_all_DIR ?

101

Why does this need a custom RUN_INPUT_train_DIR?

External/SPEC/SpecCPU2017.cmake
217

Did you consider removing the WORKDIR argument entirely? Seems that we never want to use a directory other than in the build dir. Are that other uses used of WORKDIR left?

fhahn updated this revision to Diff 362875.Jul 29 2021, 1:47 PM

Thanks Michael! I removed the unused WORKDIR argument completely and also dropped the left-over RUN_INPUT__DIRs.

fhahn marked 2 inline comments as done.Jul 29 2021, 1:48 PM
fhahn added inline comments.
External/SPEC/CINT2017rate/557.xz_r/CMakeLists.txt
25

Thanks, this was left over from an earlier iteration, I removed it.

101

Thanks, this was left over from an earlier iteration, I removed it.

External/SPEC/SpecCPU2017.cmake
217

That's a great point! It's not needed by any benchmark. I removed it.

Meinersbur accepted this revision.Jul 29 2021, 2:39 PM

LGTM, thanks.

This revision is now accepted and ready to land.Jul 29 2021, 2:39 PM
This revision was automatically updated to reflect the committed changes.
fhahn marked 2 inline comments as done.