Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization flag #20

Open
ardacekic opened this issue Nov 8, 2021 · 0 comments
Open

Optimization flag #20

ardacekic opened this issue Nov 8, 2021 · 0 comments

Comments

@ardacekic
Copy link

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_r_base.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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant