ccelio / Speckle

A wrapper for the SPEC CPU2006 benchmark suite.
85 stars 53 forks source link

Optimization flag #20

Open ardacekic opened 3 years ago

ardacekic commented 3 years ago

I would like to ask you about a point that I got stuck. I'm running these SPEC BM tests using SPEC2017 and I got an error message about the optimization flag in the 502.gcc_r test.

The error says: "The 502.gcc_r benchmark binary 'cpugcc_r' has encountered an internal error. It is possible that there is an error in the benchmark 502.gcc_r source code, but it is more likely that your compiler has mis optimized or otherwise generated bad code for the benchmark. you might try reducing the optimization level"

HOW DID I RUN? Running: ./cpugcc_rbase.cakil-64 scilab.c -O3 -finline-limit=50000 -o scilab.opts-O3-finline-linit_50000.s

The version of gcc in the riscv tool-chain that I use in compilation process:

riscv64-unknown-linux-gnu-gcc -v: Using built-in specs. COLLECT_GCC=riscv64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/tools/rv64gc/libexec/gcc/riscv64-unknown-linux-gnu/11.1.0/lto-wrapper Target: riscv64-unknown-linux-gnu Configured with: /tmp/riscv-gnu-toolchain/riscv-gcc/configure --target=riscv64-unknown-linux-gnu --prefix=/tools/rv64gc --with-sysroot=/tools/rv64gc/sysroot --with-system-zlib --enable-shared --enable-tls --enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libsanitizer --disable-nls --disable-bootstrap --src=.././riscv-gcc --disable-multilib --with-abi=lp64d --with-arch=rv64gc --with-tune=rocket 'CFLAGS_FOR_TARGET=-O2 -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-O2 -mcmodel=medlow'

riscv64-unknown-elf-gcc -v: Using built-in specs. COLLECT_GCC=riscv64-unknown-elf-gcc COLLECT_LTO_WRAPPER=/tools/rv64gc/libexec/gcc/riscv64-unknown-elf/11.1.0/lto-wrapper Target: riscv64-unknown-elf Configured with: /tmp/riscv-gnu-toolchain/riscv-gcc/configure --target=riscv64-unknown-elf --prefix=/tools/rv64gc --disable-shared --disable-threads --enable-languages=c,c++ --with-system-zlib --enable-tls --with-newlib --with-sysroot=/tools/rv64gc/riscv64-unknown-elf --with-native-system-header-dir=/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --disable-tm-clone-registry --src=.././riscv-gcc --disable-multilib --with-abi=lp64d --with-arch=rv64gc --with-tune=rocket 'CFLAGS_FOR_TARGET=-Os -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-Os -mcmodel=medlow' Thread model: single Supported LTO compression algorithms: zlib gcc version 11.1.0 (GCC)

Thanks for your interest, I'd be very happy if you could help me figure out :)