Skip to content

Commit 5e1d5ed

Browse files
authored
Merge pull request #147 from trz42/nessi-23.06-OpenBLAS-0.3.18-foss-2021b
{23.06}[foss/2021b] add missing packages for foss/2021b
2 parents cb5e2b3 + cb82d17 commit 5e1d5ed

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

eb_hooks.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,21 @@ def parse_hook_fontconfig_add_fonts(ec, eprefix):
159159
raise EasyBuildError("fontconfig-specific hook triggered for non-fontconfig easyconfig?!")
160160

161161

162+
def parse_hook_openblas_relax_lapack_tests_num_errors(ec, eprefix):
163+
"""Relax number of failing numerical LAPACK tests."""
164+
if ec.name == 'OpenBLAS':
165+
cfg_option = 'max_failing_lapack_tests_num_errors'
166+
num_errors = 302
167+
if get_cpu_architecture() == AARCH64:
168+
# relax number of failed numerical LAPACK tests
169+
ec[cfg_option] = num_errors
170+
print_msg("Set '%s = %d' in easyconfig for %s on AARCH64", cfg_option, num_errors, ec.name)
171+
else:
172+
print_msg("Not changing option %s for %s on non-AARCH64", cfg_option, ec.name)
173+
else:
174+
raise EasyBuildError("OpenBLAS-specific hook triggered for non-OpenBLAS easyconfig?!")
175+
176+
162177
def parse_hook_ucx_eprefix(ec, eprefix):
163178
"""Make UCX aware of compatibility layer via additional configuration options."""
164179
if ec.name == 'UCX':
@@ -232,6 +247,7 @@ def pre_configure_hook_wrf_aarch64(self, *args, **kwargs):
232247
PARSE_HOOKS = {
233248
'CGAL': parse_hook_cgal_toolchainopts_precise,
234249
'fontconfig': parse_hook_fontconfig_add_fonts,
250+
'OpenBLAS': parse_hook_openblas_relax_lapack_tests_num_errors,
235251
'UCX': parse_hook_ucx_eprefix,
236252
}
237253

eessi-2023.06-eb-4.7.2-2021b.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ easyconfigs:
66
- OpenMPI-4.1.1-GCC-11.2.0.eb
77
- FFTW-3.3.10-gompi-2021b.eb
88
- BLIS-0.8.1-GCC-11.2.0.eb
9+
- foss-2021b.eb
910
# - CMake-3.22.1-GCCcore-11.2.0.eb:
1011
# options:
1112
# include-easyblocks-from-pr: 2248

0 commit comments

Comments
 (0)