Skip to content

Commit 6ef483c

Browse files
committed
Merge branch 'LAMMPS_hook' into test_LAMMPS_HOOK
2 parents 3963f1b + a31d4aa commit 6ef483c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

eb_hooks.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,9 +1042,12 @@ def pre_configure_hook_LAMMPS_zen4_and_Aarch64_cuda(self, *args, **kwargs):
10421042
if dep['version'] in cuda_versions:
10431043
cxxflags = os.getenv('CXXFLAGS', '')
10441044
cxxflags = cxxflags.replace('-mcpu=native', '')
1045-
# All ARM targets of 2Aug2023_update are build with ARMV80 or ARM81.
1046-
# This is not the case for newer versions.
1047-
cxxflags += ' -march=armv8-a+nosimd'
1045+
if cpu_target == CPU_TARGET_AARCH64_GENERIC:
1046+
# For targets build with ARMV80
1047+
cxxflags += ' -march=armv7-a+nosimd'
1048+
else:
1049+
# In 2Aug2023 all other targets are build with ARMV81
1050+
cxxflags += ' -march=armv8-a+nosimd'
10481051
self.log.info("Setting CXXFLAGS to disable NEON: %s", cxxflags)
10491052
env.setvar('CXXFLAGS', cxxflags)
10501053

0 commit comments

Comments
 (0)