Skip to content

Commit

Permalink
change kokkos mapping for Aarch64"
Browse files Browse the repository at this point in the history
  • Loading branch information
lara committed Nov 15, 2023
1 parent fd6ac5a commit da82af7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@


CPU_TARGET_NEOVERSE_V1 = 'aarch64/neoverse_v1'
CPU_TARGET_AARCH64_GENERIC = 'aarch64/generic'

EESSI_RPATH_OVERRIDE_ATTR = 'orig_rpath_override_dirs'

Expand Down Expand Up @@ -277,7 +278,10 @@ def pre_configure_hook_LAMMPS_aarch64(self, *args, **kwargs):
if self.name == 'LAMMPS':
if self.version == '23Jun2022':
if get_cpu_architecture() == AARCH64:
self.cfg['kokkos_arch'] = 'A64FX'
if cpu_target == CPU_TARGET_AARCH64_GENERIC:
self.cfg['kokkos_arch'] = 'ARM81'
else:
self.cfg['kokkos_arch'] = 'ARM80'
else:
raise EasyBuildError("LAMMPS-specific hook triggered for non-LAMMPS easyconfig?!")

Expand Down

0 comments on commit da82af7

Please sign in to comment.