SPEC2017 is available in opencl@dcc.
To use it, each user should install it in their own home directory (ideally)
or somewhere else of his/her choice.
Since every user has his own needs, it is better for each one to have a
private copy of SPEC.
Andrei has created a script to help with this process.
The script is available at:
$ /opt/benchmarks/SPEC2017/install.shThe script asks the user to choose a directory:
SPEC CPU2017 Installation Top of the CPU2017 tree is '/opt/benchmarks/SPEC2017/iso' Enter the directory you wish to install to (e.g. /usr/cpu2017) 1) choose somewhere in your home (e.g.: /home/andrei/SPEC2017") 2) type "yes" to continueTo use SPEC, go to you installed SPEC directory and load its configuration:
$ cd /home/andrei/SPEC2017 $ . shrcIf you wish to run the SPEC benchmarks under a simulated environment, such as valgrind, pin or any other, download and apply spec2017-prepend.patch patch. This patch adds the "--prepend" command line argument to runcpu in order to execute another program with the benchmark and its inputs as arguments.
$ patch -p1 < spec2017-prepend.patch patching file MANIFEST patching file bin/harness/benchmark.pm patching file bin/harness/configpp patching file bin/harness/parse.pl patching file bin/harness/runcpuThe patch was designed in such a way that you can use some of the variables exposed by the running script (bin/harness/benchmark.pm). Some interesting variables are (don't forget to escape the $ while running in the terminal):
$ runcpu --prepend="valgrind -q --tool=loopgrind --cfg-outfile=\$basedir/run.cfg" --config=valgrind 557.xz ...Please refer the SPEC documentation for further information.