MCFI icon indicating copy to clipboard operation
MCFI copied to clipboard

Compiling SPEC2006 with MCFI/PICFI

Open jarsp opened this issue 5 years ago • 1 comments

Hello, I've followed the instructions to compile the instrumented toolchain on a Ubuntu 14.04.6 VM, and I am trying to get it to compile and run the SPEC CPU2006 benchmarks. I was using the llvm test suite (at https://github.com/llvm/llvm-test-suite) to compile and llvm-lit to run the benchmarks, but the benchmarks segfault in what appears to be instrumentation code. The given patches were applied to the code. May I know if there is any recommended method of getting the SPEC benchmarks running under PICFI?

If it helps, I was using

cmake -DTEST_SUITE_SUBDIRS=External -C../cmake/caches/O3.cmake -DTEST_SUITE_SPEC2006_ROOT=<spec2006_path> -DTEST_SUITE_USE_PERF=ON -GNinja ..

as my cmake command-line, and CC and CXX set to clang/clang++ in toolchain/bin. Thanks again.

jarsp avatar Apr 15 '20 20:04 jarsp

Hello, thanks for the interest. I never tested using the llvm test suite to build and run spec2k6. If I remember correctly, you probably need to hack into spec2k6 build configs to build the programs.

mcfi avatar Apr 29 '20 20:04 mcfi