spec2017学习笔记

819 阅读1分钟

Overview

  • SPEC CPU 2017 is not intended to stress other computer componeents such as networking, graphics, Java libraries, or the I/O system. Note that there are other SPEC benchmarks that focus on those areas.
  • Most of the benchmark programs are drawn from actual end-user applications, as opposed to being synthetic benchmarks.
  • benchmark suite
  • category: speed/rate; inter/fp; base/peak

Run Command Examples

runcpu -c tryi 603 --tuning peak --iterations 1 --loose --threads 8 --size train

  • --size: ref(default) test,train,ref
  • --action: run(default) build
  • --tuning: base(default), peak
  • --iterations: 2(default), affect by reportable
  • --loose examples
  • speed: allow openmp; allow --threads
  • rate/throughput: openmp/auto para disabled; allow --copies

Known issues from my trial

  • Visual Studio which is prior than VS2022, need to install latest WinSDK, or it cannot find header.
  • Need to download Intel compiler to build, because fortran is Not supported in VS.
  • Intel compiler has been integrated from XE studio to OneAPI.
  • Need to use new compiler command since classic compiler command is not supported after 2013
  • Example config need to be changed according to ICC logs.

windows

Reference: www.spec.org/cpu2017/Doc…

prepare

install visual studio and install win11 sdk.

install

  1. create a folder as the install dir.
  2. attach iso file && start a cmd terminal in that folder
  3. install.bat c:\cpu2017

set compiler

  1. edit shrc.bat
set SHRC_COMPILER_PATH_SET=yes
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
  1. run shrc.bat in terminal

config

  1. copy Example-VisualStudio.cfg to try.cfg
  2. edit in try.cfg % define VSVERSION 2019 # the runcpu command line. Use a four

run

runcpu -c try.cfg --action build 508.namd_r
runcpu -c try.cfg --size test --iterations 1 -noreportable fprate
runcpu --config=try --reportable --copies=10 fprate

linux

Reference:www.spec.org/cpu2017/Doc…

install

mount cpu2017-1.1.8.iso mount_point/
./install.sh -d /home/gy/cpu2017
source shrc

config

set correct gcc dir in ubuntu

define  gcc_dir        "/usr"  # EDIT (see above)

run

runcpu --config=try1 --action=build 505.mcf_r
runcpu --config=try1 --size=test --copies=1 --noreportable  --iterations=1 intrate
runcpu --config=try1 --reportable intrate

log

  • cpu2017/result contains the log of each run
  • cpu2017/benchspec/CPU contains the details of each benchmark