From 6ac12f6a8058fbfaf15b4a790ece8ea07361e458 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Tue, 26 Aug 2025 12:47:03 +0200 Subject: [PATCH] also add -DCACHE_SECTOR_SIZE_READONLY to $CFLAGS when building BLIS 1.0 and 1.1 for A64FX --- eb_hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eb_hooks.py b/eb_hooks.py index befd4240..7ee9e32a 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -672,12 +672,12 @@ def pre_configure_hook(self, *args, **kwargs): def pre_configure_hook_BLIS_a64fx(self, *args, **kwargs): """ - Pre-configure hook for BLIS when building for A64FX: + Pre-configure hook for BLIS when building for A64FX to fix "Illegal instruction" problem - add -DCACHE_SECTOR_SIZE_READONLY to $CFLAGS for BLIS 0.9.0, cfr. https://github.com/flame/blis/issues/800 """ if self.name == 'BLIS': cpu_target = get_eessi_envvar('EESSI_SOFTWARE_SUBDIR') - if self.version == '0.9.0' and cpu_target == CPU_TARGET_A64FX: + if self.version in ('0.9.0', '1.0', '1.1') and cpu_target == CPU_TARGET_A64FX: # last argument of BLIS' configure command is configuration target (usually 'auto' for auto-detect), # specifying of variables should be done before that config_opts = self.cfg['configopts'].split(' ')