Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
CPU_TARGET_NVIDIA_GRACE = 'aarch64/nvidia/grace'
CPU_TARGET_AWS_GRAVITON4 = 'aarch64/aws/graviton4'

CPU_TARGET_X86_64_GENERIC = 'x86_64/generic'
CPU_TARGET_CASCADELAKE = 'x86_64/intel/cascadelake'
CPU_TARGET_ICELAKE = 'x86_64/intel/icelake'
CPU_TARGET_SAPPHIRE_RAPIDS = 'x86_64/intel/sapphirerapids'
Expand Down Expand Up @@ -1113,6 +1114,20 @@ def pre_prepare_hook_highway_handle_test_compilation_issues(self, *args, **kwarg
raise EasyBuildError("Highway-specific hook triggered for non-Highway easyconfig?!")


def post_prepare_hook_AITW_olb_permeability(self, *args, **kwargs):
"""
Post-prepare hook for AITW-olb_permeability
This is not run as a pre-configure hook since the configure step is skipped and the hook would be skipped as well.
- Ensure the `CPU_SIMD` flag is not set when building on x86_64 with generic optimization
"""
if self.name == 'AITW-olb_permeability':
optarch = build_option('optarch')
cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR')
if optarch == OPTARCH_GENERIC:
if cpu_target == CPU_TARGET_X86_64_GENERIC:
self.cfg.update('buildopts', 'PLATFORMS="CPU_SISD"')


def post_prepare_hook_highway_handle_test_compilation_issues(self, *args, **kwargs):
"""
Post-prepare hook for Highway to reset optarch build option.
Expand Down Expand Up @@ -2462,6 +2477,7 @@ def post_easyblock_hook(self, *args, **kwargs):
'Highway': post_prepare_hook_highway_handle_test_compilation_issues,
'LLVM': post_prepare_hook_llvm_a64fx,
'Rust': post_prepare_hook_llvm_a64fx,
'AITW-olb_permeability': post_prepare_hook_AITW_olb_permeability,
}

PRE_CONFIGURE_HOOKS = {
Expand Down
Loading