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

typo error: -vectorize-noncontigous-memory-aggressively #1930

Open
estgeorge opened this issue Oct 25, 2023 · 3 comments
Open

typo error: -vectorize-noncontigous-memory-aggressively #1930

estgeorge opened this issue Oct 25, 2023 · 3 comments
Assignees

Comments

@estgeorge
Copy link

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
Copy link
Author

Typo in arch/configure.defaults

@ravitejakuppili
Copy link

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.

@estgeorge
Copy link
Author

estgeorge commented Oct 26, 2023

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

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

3 participants