@@ -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+
162177def 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):
232247PARSE_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
0 commit comments