-
Notifications
You must be signed in to change notification settings - Fork 137
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
failed to run SPEC CPU2017 521.wrf_r with -march=native or -march=skylake. #1107
Comments
Can you rerun setting environment variables MTH_I_STATS=7 and MTH_I_DEBUG=1 and capture stderr? |
I had try to run(after set MTH_I_STATS=7 and MTH_I_DEBUG=1) : '''runcpu -c llvm --noreportable -n 1 521 2> std_err.txt''' but the file std_err.txt is empty. The log file output by CPU2017. |
In your log.debug file: 1625802351.74: Invoked as: /home/edison/cpu2017/bin/specinvoke -d /home/edison/cpu2017/benchspec/CPU/521.wrf_r/run/run_base_refrate_llvm_12-m64.0000 -f speccmds.cmd -q -e speccmds.err -o speccmds.stdout I don't see any MTH_I_STATS or MTH_I_DEBUG. |
My bad, I forgot use "export" to set them. here is the output: |
The error being reported is because the application is calling and avx512 entry point: __pgmath_abort:Math dispatch table is either misconfigured or corrupted.**** log/dv8/precise ****Entry point not defined for CPU target=avx2. log/dv8 implies zmm registers. The math library detected that you're running on an AVX2 processor (not AVX512): MTH_I_DEBUG=1 |
I have check the bin file built with flang, there is not "zmm" output from "objdump -d wrf_r_base.llvm_12-m64 |grep zmm". |
Can you look for "pow_8" in your objdump? |
I have used flang to buiild CPU 2017 a few months ago, its version is 7.0.1, In my memory that flang does not need "classic-flang-llvm-project" to build. |
You'll have to figure out where the call to __pd_pow_8 is coming from. I'd suggest setting a break point with gdb at that symbol and when it triggers then show the backtrace of the stack. Is your executable static or dynamic? If it is not static, I'd suggest relinking it as static and again verifying that __pd_pow_8 is not being called. |
My system:
Intel Hades Canyon (CPU: Intel KabyLake-G 8809G ) with 16GB memory.
I built the flang according this: https://github.com/flang-compiler/flang/wiki/Building-Flang.
It's strange, the flang bin file bulit does not show the output like in the flang page with --help:
now, when I use classic flang llvm 12x to build the SPEC CPU2017, -march=x86-64 & -mtune=core-avx2 is ok, but when I use -march=skylake or -march=native, 521.wrf would failed to run(I had add FPORTABILITY = -Mbyteswapio):
The text was updated successfully, but these errors were encountered: