[PATCH] D107061: [SPEC2017] Copy reference files to run dir, use for compares.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 05:42:49 PDT 2021


fhahn created this revision.
fhahn added reviewers: naromero77, Meinersbur, cmatthews, paquette.
Herald added a subscriber: mgorny.
fhahn requested review of this revision.

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.


Repository:
  rT test-suite

https://reviews.llvm.org/D107061

Files:
  External/SPEC/CINT2017rate/523.xalancbmk_r/CMakeLists.txt
  External/SPEC/CINT2017rate/525.x264_r/CMakeLists.txt
  External/SPEC/CINT2017rate/557.xz_r/CMakeLists.txt
  External/SPEC/SpecCPU2017.cmake

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107061.362732.patch
Type: text/x-patch
Size: 9270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/569ffa1b/attachment.bin>


More information about the llvm-commits mailing list