SPEC CPU 2017 Ubuntu 22.04 fpspeed测试报错Invalid run; unable to continue. 627.cam4_s: copy 0 non-zero

解决

source shrc
ulimit -s unlimited
runcpu -c gcc.cfg -T base -s -F config/flags/gcc.xml -n 3 -C 1 --Threads 1 -i ref fpspeed

过程

gcc

yeqiang@yeqiang-MS-7B23:/home/speccpu/cpu2017$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 

测试指令

runcpu -c gcc.cfg -T base -s -F config/flags/gcc.xml -n 3 -C 1 --Threads 1 -i ref fpspeed

终端日志

yeqiang@yeqiang-MS-7B23:/home/speccpu/cpu2017$ runcpu -c gcc.cfg -T base -s -F config/flags/gcc.xml -n 3 -C 1 --Threads 1 -i ref fpspeed
SPEC CPU(r) 2017 Benchmark Suites
Copyright 1995-2019 Standard Performance Evaluation Corporation (SPEC)

runcpu v6612
Using 'linux-x86_64' tools
Reading file manifests... read 32225 entries from 2 files in 0.08s (416898 files/s)
Loading runcpu modules.................
Locating benchmarks...found 47 benchmarks in 73 benchsets.
Reading config file '/home/speccpu/cpu2017/config/gcc.cfg'
1 configuration selected:

 Action    Run Mode   Workload     Report Type      Benchmarks
--------   --------   --------   ----------------   ---------------------------
validate   speed      refspeed   SPECspeed2017_fp   fpspeed                    
Downloading update information for version check...
OK
	Version 1.1.9 of CPU2017 is the latest available.

Reportable runs must include a 'test' run; adding to run list
Reportable runs must include a 'train' run; adding to run list
-------------------------------------------------------------------------------

Setting up environment for running fpspeed...
Starting runcpu for fpspeed...
Running "specperl /home/speccpu/cpu2017/bin/sysinfo" to gather system information.
sysinfo: r6732 of 2022-11-07 (fe91c89b7ed5c36ae2c92cc097bec197)
sysinfo: ...getting basic information about kernel, users, and limits
sysinfo: Getting system information for Linux...
sysinfo: ...getting CPU info
sysinfo: ...getting info from numactl
sysinfo: ...getting memory info
sysinfo: ...getting info from systemd
sysinfo: ...getting power info
sysinfo: ...getting system tuning info
sysinfo: ...getting OS info
sysinfo: ...getting disk info
sysinfo: ...getting info from /sys/devices/virtual/dmi/id
sysinfo: ...getting info from dmidecode
Retrieving flags file (config/flags/gcc.xml)...
Reportable runs must include a 'test' run; adding to run list
Reportable runs must include a 'train' run; adding to run list
Benchmarks selected: 603.bwaves_s, 607.cactuBSSN_s, 619.lbm_s, 621.wrf_s, 627.cam4_s, 628.pop2_s, 638.imagick_s, 644.nab_s, 649.fotonik3d_s, 654.roms_s, 996.specrand_fs
Notice: Errors may not be ignored for reportable runs.
Compiling Binaries
  Up to date 603.bwaves_s base mytest-m64
  Up to date 607.cactuBSSN_s base mytest-m64
  Up to date 619.lbm_s base mytest-m64
  Up to date 621.wrf_s base mytest-m64
  Up to date 627.cam4_s base mytest-m64
  Up to date 628.pop2_s base mytest-m64
  Up to date 638.imagick_s base mytest-m64
  Up to date 644.nab_s base mytest-m64
  Up to date 649.fotonik3d_s base mytest-m64
  Up to date 654.roms_s base mytest-m64
  Up to date 996.specrand_fs base mytest-m64


Setting Up Run Directories
  Setting up 603.bwaves_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 607.cactuBSSN_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 619.lbm_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 621.wrf_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 627.cam4_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 628.pop2_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 638.imagick_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 644.nab_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 649.fotonik3d_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 654.roms_s test base mytest-m64: run_base_test_mytest-m64.0000
  Setting up 996.specrand_fs test base mytest-m64: run_base_test_mytest-m64.0000
Running Benchmarks
  Running 603.bwaves_s test base mytest-m64 [2023-07-10 09:30:56]
  Running 607.cactuBSSN_s test base mytest-m64 [2023-07-10 09:31:03]
  Running 619.lbm_s test base mytest-m64 [2023-07-10 09:31:06]
  Running 621.wrf_s test base mytest-m64 [2023-07-10 09:31:17]
  Running 627.cam4_s test base mytest-m64 [2023-07-10 09:31:23]
627.cam4_s: copy 0 non-zero return code (exit code=139, signal=0)

****************************************
Contents of cam4_s_base.mytest-m64.err
****************************************
Segmentation fault (core dumped)

****************************************
****************************************
Contents of speccmds.out
****************************************
specinvoke r4356
 Invoked as: /home/speccpu/cpu2017/bin/specinvoke -d /home/speccpu/cpu2017/benchspec/CPU/627.cam4_s/run/run_base_test_mytest-m64.0000 -f speccmds.cmd -q -e speccmds.err -o speccmds.stdout
timer ticks over every 1000 ns
 Environment in effect for these runs:
 # 1: LC_MONETARY=mn_MN
 # 2: PATH=/home/speccpu/cpu2017/bin:/home/yeqiang/.tiup/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/yeqiang/go/bin
 # 3: TERM=xterm-256color
 # 4: LANG=zh_CN.UTF-8
 # 5: LOGNAME=yeqiang
 # 6: _=/home/speccpu/cpu2017/bin/runcpu
 # 7: SPECDB_PWD=/home/speccpu/cpu2017
 # 8: LIBC_FATAL_STDERR_=1
 # 9: LC_PAPER=mn_MN
 #10: LC_NAME=mn_MN
 #11: XDG_SESSION_DESKTOP=ubuntu
 #12: QT_ACCESSIBILITY=1
 #13: SESSION_MANAGER=local/yeqiang-MS-7B23:@/tmp/.ICE-unix/1990,unix/yeqiang-MS-7B23:/tmp/.ICE-unix/1990
 #14: XDG_SESSION_CLASS=user
 #15: GTK_MODULES=gail:atk-bridge
 #16: PWD=/home/speccpu/cpu2017
 #17: LC_ADDRESS=mn_MN
 #18: LC_IDENTIFICATION=mn_MN
 #19: SYSTEMD_EXEC_PID=1990
 #20: LC_TELEPHONE=mn_MN
 #21: GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
 #22: GNOME_SHELL_SESSION_MODE=ubuntu
 #23: XDG_CURRENT_DESKTOP=ubuntu:GNOME
 #24: IM_CONFIG_PHASE=1
 #25: LC_TIME=mn_MN
 #26: OMP_STACKSIZE=120M
 #27: SPECPERLLIB=/home/speccpu/cpu2017/bin/lib:/home/speccpu/cpu2017/bin
 #28: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=8ca8c5be8596ec50bea672e964ab45a9
 #29: DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=8ca8c5be8596ec50bea672e964ab45a9
 #30: WINDOWPATH=2
 #31: XAUTHORITY=/run/user/1000/gdm/Xauthority
 #32: USERNAME=yeqiang
 #33: SHLVL=1
 #34: XDG_MENU_PREFIX=gnome-
 #35: GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/eb8f1117_2fa4_4616_b8bc_02ead44e4bd7
 #36: QT_IM_MODULE=fcitx
 #37: XDG_SESSION_TYPE=x11
 #38: VTE_VERSION=6800
 #39: OLDPWD=/home/speccpu/cpu2017/result.20230706.intspeed
 #40: GDMSESSION=ubuntu
 #41: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
 #42: COLORTERM=truecolor
 #43: XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
 #44: SPEC=/home/speccpu/cpu2017
 #45: HOME=/home/yeqiang
 #46: LC_LANG=C
 #47: GNOME_DESKTOP_SESSION_ID=this-is-deprecated
 #48: GNOME_TERMINAL_SERVICE=:1.111
 #49: USER=yeqiang
 #50: XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
 #51: DISPLAY=:1
 #52: SHELL=/bin/bash
 #53: XDG_RUNTIME_DIR=/run/user/1000
 #54: GTK_IM_MODULE=fcitx
 #55: LC_MEASUREMENT=mn_MN
 #56: LC_ALL=C
 #57: DESKTOP_SESSION=ubuntu
 #58: SSH_AGENT_LAUNCHER=gnome-keyring
 #59: XMODIFIERS=@im=fcitx
 #60: LD_LIBRARY_PATH=/usr/lib64/:/usr/lib/:/lib64
 #61: CLUTTER_IM_MODULE=fcitx
 #62: LC_NUMERIC=mn_MN
 #63: DBUS_STARTER_BUS_TYPE=session
 #64: OMP_NUM_THREADS=1
 #65: OMP_THREAD_LIMIT=1
running commands in speccmds.cmd 1 times
runs started at		1688952683, 533690000, Mon Jul 10 09:31:23 2023
run 1 started at	1688952683, 533705000, Mon Jul 10 09:31:23 2023
child started: 0,	1688952683, 533709000, pid=11879, '../run_base_test_mytest-m64.0000/cam4_s_base.mytest-m64 > cam4_s_base.mytest-m64.txt 2>> cam4_s_base.mytest-m64.err'
child finished: 0,	1688952684, 972862000, sec=1, nsec=439153000, pid=11879, rc=35584
run 1 finished at:	1688952684, 972885000, Mon Jul 10 09:31:24 2023
run 1 elapsed time:	         1, 439180000, 1.439180000
runs finished at	1688952684, 972898000, Mon Jul 10 09:31:24 2023
runs elapsed time:	         1, 439208000, 1.439208000
error: a total of 1 children finished with errors
specinvoke exit: rc=0

****************************************
Invalid run; unable to continue.
The log for this run is in /home/speccpu/cpu2017/result/CPU2017.001.log
The debug log for this run is in /home/speccpu/cpu2017/result/CPU2017.001.log.debug
*
* Temporary files were NOT deleted; keeping temporaries such as
* /home/speccpu/cpu2017/result/CPU2017.001.log.debug and
* /home/speccpu/cpu2017/tmp/CPU2017.001
* (These may be large!)
*
runcpu finished at 2023-07-10 09:31:25; 45 total seconds elapsed
yeqiang@yeqiang-MS-7B23:/home/speccpu/cpu2017$ 

故障程序

/home/speccpu/cpu2017/benchspec/CPU/627.cam4_s/run/run_base_test_mytest-m64.0000/cam4_s_base.mytest-m64

执行崩溃

Segmentation fault (core dumped)

参考

FAQ - CPU 2017

Miscompare.07  q. Why is 627.cam4_s failing?

测试前设置ulimit -s unlimited

部分日志,可以看到627用例已通过测试

Running Benchmarks
  Running 603.bwaves_s train base mytest-m64 [2023-07-10 09:53:47]
  Running 607.cactuBSSN_s train base mytest-m64 [2023-07-10 09:54:16]
  Running 619.lbm_s train base mytest-m64 [2023-07-10 09:54:39]
  Running 621.wrf_s train base mytest-m64 [2023-07-10 09:56:55]
  Running 627.cam4_s train base mytest-m64 [2023-07-10 09:57:29]
  Running 628.pop2_s train base mytest-m64 [2023-07-10 09:58:41]
  Running 638.imagick_s train base mytest-m64 [2023-07-10 09:59:24]
  Running 644.nab_s train base mytest-m64 [2023-07-10 09:59:45]
  Running 649.fotonik3d_s train base mytest-m64 [2023-07-10 10:01:11]
  Running 654.roms_s train base mytest-m64 [2023-07-10 10:01:40]
  Running 996.specrand_fs train base mytest-m64 [2023-07-10 10:02:53]
Success: 1x603.bwaves_s 1x607.cactuBSSN_s 1x619.lbm_s 1x621.wrf_s 1x627.cam4_s 1x628.pop2_s 1x638.imagick_s 1x644.nab_s 1x649.fotonik3d_s 1x654.roms_s 1x996.specrand_fs
Benchmarks selected: 603.bwaves_s, 607.cactuBSSN_s, 619.lbm_s, 621.wrf_s, 627.cam4_s, 628.pop2_s, 638.imagick_s, 644.nab_s, 649.fotonik3d_s, 654.roms_s, 996.specrand_fs