Skip to content

Commit 185702e

Browse files
committed
Switch to -mcpu=native only
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
1 parent 0581a59 commit 185702e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

easybuild/toolchains/compiler/llvm_compilers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ class LLVMCompilers(Compiler):
143143
# used when 'optarch' toolchain option is enabled (and --optarch is not specified)
144144
COMPILER_OPTIMAL_ARCHITECTURE_OPTION = {
145145
**(Compiler.COMPILER_OPTIMAL_ARCHITECTURE_OPTION or {}),
146-
# -march=native may not include all CPU features on aarch64, e.g. missing bf16 on Grace for LLVM 21.1.8
147-
(systemtools.AARCH64, systemtools.ARM): '-mcpu=native -mtune=native',
146+
# -mcpu=native is recommended way to specify feature set for aarch64, see:
147+
# https://github.com/easybuilders/easybuild-framework/pull/5139#issuecomment-3961654073
148+
(systemtools.AARCH64, systemtools.ARM): '-mcpu=native',
148149
(systemtools.POWER, systemtools.POWER): '-mcpu=native', # no support for march=native on POWER
149150
(systemtools.POWER, systemtools.POWER_LE): '-mcpu=native', # no support for march=native on POWER
150151
(systemtools.X86_64, systemtools.AMD): '-march=native',

0 commit comments

Comments
 (0)