spec2006 测试命令

spec2006.iso spec 最原始的代码

在 x86 上安装 spec2006

  1. mount spec2006 /mnt
  2. cd /mnt
  3. ./install.sh 安装 spec2006,需要输入安装路径
    ./install.sh -h # 查看 help 信息
    ./install.sh -d [self-defined dir] # 可以自己设定目标安装路径

spec2006-ubuntu20.04.tar.gz for ubuntu20.04
配置文件为 config/gcc.cfg

  1. vim bin/runspec 修改路径
  2. vim bin/specdiff 修改路径
  3. . ./shrc 更新环境变量
  4. runspec -c gcc710-base-correct-02.cfg -a scrub all
清理相应的题,all:清理所有,或者指定题名
  1. runspec -c gcc710-base-correct-02.cfg -T peak -i ref -n 1 -r 1 all –noreportable
编译运行,

-n指定运行次数,默认跑三遍
-r指定运行核数,默认4核
-all为所有题目,可选项为int,fp或者单题题号
--noreportable  出错情况下继续测试,参数下-n 1才能生效
-i测试规模,从小到大规模依次为test train  ref, 如果想要计算分数,选ref
-T 优化规模,默认base
  1. ls benchspec/CPU2006 查看 cpu2006 相应的题,共 31 题,其中 29 题可计分
    400.perlbench
    401.bzip2
    403.gcc
    410.bwaves
    416.gamess
    429.mcf
    433.milc
    434.zeusmp
    435.gromacs
    436.cactusADM
    437.leslie3d
    444.namd
    445.gobmk
    447.dealII
    450.soplex
    453.povray
    454.calculix
    456.hmmer
    458.sjeng
    459.GemsFDTD
    462.libquantum
    464.h264ref
    465.tonto
    470.lbm
    471.omnetpp
    473.astar
    481.wrf
    482.sphinx3
    483.xalancbmk
    998.specrand
    999.specrand
  2. 进入相应的题,如:
    cd benchspec/CPU2006/400.perlbench/build/build_base_* && make 进行编译
    cd benchspec/CPU200