Skip to content

Conversation

@laraPPr
Copy link
Contributor

@laraPPr laraPPr commented Sep 25, 2025

Some context for this change: there is a problem with CUDA<13.1 for Arm architectures which try to leverage NEON instructions. The workaround in EESSI/software-layer-scripts#87 is to override the architecture detection so these are not included. This change allows you to do that even for the generic case.

Copy link
Member

@ocaisa ocaisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocaisa ocaisa merged commit cae1c39 into easybuilders:develop Sep 25, 2025
17 checks passed
Comment on lines +279 to +288
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'
Copy link
Collaborator

@Thyre Thyre Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand the idea, but this looks weird nonetheless.
This will still print a warning because kokkos_arch is set, even though it is not ignored but will be used. It's also confusing that this only applies for aarch64, even though one might want to use the same approach for x86 when the generic optarch is set.

Instead, we should probably check kokkos_arch first and the optarch if kokkos_arch is not set.
This would allow EESSI to use the overwrite, and increase flexibility in general.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ocaisa @laraPPr Should we follow up on this?

@Thyre Maybe it's better to open an issue, following up on things in merged PRs is notoriously difficult

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@boegel boegel changed the title Make it possible to overide kokkos_arch for GENERIC ARM target enhance LAMMPS easyblock to make it possible to overide kokkos_arch for GENERIC ARM target Oct 8, 2025
@boegel boegel added this to the next release (5.2.0?) milestone Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants