Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion easybuild/toolchains/compiler/llvm_compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ class LLVMCompilers(Compiler):
# used when 'optarch' toolchain option is enabled (and --optarch is not specified)
COMPILER_OPTIMAL_ARCHITECTURE_OPTION = {
**(Compiler.COMPILER_OPTIMAL_ARCHITECTURE_OPTION or {}),
(systemtools.AARCH64, systemtools.ARM): '-march=native',
# -march=native may not include all CPU features on aarch64, e.g. missing bf16 on Grace for LLVM 21.1.8
(systemtools.AARCH64, systemtools.ARM): '-mcpu=native -mtune=native',
(systemtools.POWER, systemtools.POWER): '-mcpu=native', # no support for march=native on POWER
(systemtools.POWER, systemtools.POWER_LE): '-mcpu=native', # no support for march=native on POWER
(systemtools.X86_64, systemtools.AMD): '-march=native',
Expand Down