diff --git a/easybuild/easyblocks/l/lammps.py b/easybuild/easyblocks/l/lammps.py index a151909cf6..fbdf80a165 100644 --- a/easybuild/easyblocks/l/lammps.py +++ b/easybuild/easyblocks/l/lammps.py @@ -276,7 +276,16 @@ def get_kokkos_arch(self, cuda_cc, kokkos_arch): # For other architectures we set a custom/non-existent type, which will disable all optimizations, # and it should use the compiler (optimization) flags set by EasyBuild for this architecture. if get_cpu_architecture() == AARCH64: - processor_arch = 'ARMV80' + if kokkos_arch: + # If someone is trying a manual override for this case, let them + if kokkos_arch not in KOKKOS_CPU_ARCH_LIST: + warning_msg = "Specified CPU ARCH (%s) " % kokkos_arch + warning_msg += "was not found in listed options [%s]." % KOKKOS_CPU_ARCH_LIST + warning_msg += "Still might work though." + print_warning(warning_msg) + processor_arch = kokkos_arch + else: + processor_arch = 'ARMV80' else: processor_arch = 'EASYBUILD_GENERIC'