WRF icon indicating copy to clipboard operation
WRF copied to clipboard

typo error: -vectorize-noncontigous-memory-aggressively

Open estgeorge opened this issue 2 years ago • 3 comments

Because of the typo, WRF 4.5.X do not compile with AOCC.

make[1]: [Makefile:34: em_real] Error 1 (ignored) ld.lld: error: -mllvm: ld.lld: Unknown command line argument '-vectorize-noncontigous-memory-aggressively'. Try: '/opt/npad/shared/spack-v.0.21.0/opt/spack/linux-rocky8-zen/aocc-4.0.0-e44fzvu2tzd5sxxgoi3ce25awgmledsf/bin/ld.lld --help' ld.lld: Did you mean '--vectorize-non-contiguous-memory-aggressively'? clang-14: error: linker command failed with exit code 1 (use -v to see invocation) Command exited with non-zero status 1

estgeorge avatar Oct 25 '23 19:10 estgeorge

Typo in arch/configure.defaults

estgeorge avatar Oct 25 '23 19:10 estgeorge

Hi,

The recipe which is available tested with AOCC 3. Yes, in AOCC4, this flag has been changed to "--vectorize-non-contiguous-memory-aggressively". There is no typo in AOCC flags.

ravitejakuppili avatar Oct 26 '23 04:10 ravitejakuppili

The typo is on line 2095 (or 2094) of the file arch/configure.defaults:

https://github.com/wrf-model/WRF/blob/master/arch/configure.defaults#L2095

This is the line with the typo:

AMDLDFLAGS =-Wl,-mllvm -Wl,-enable-loop-reversal -Wl,-mllvm -Wl,-enable-gather -Wl,-mllvm -Wl,-vectorize-noncontigous-memory-aggressively

The correct flag is -vectorize-non-contiguous-memory-aggressively

estgeorge avatar Oct 26 '23 11:10 estgeorge