Skip to content

Commit bfeac1f

Browse files
committed
Get LAPACK testing summary via Python script, so log has it
1 parent 4041bd2 commit bfeac1f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

easybuild/easyblocks/a/aocl_lapack.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
from easybuild.easyblocks.generic.cmakemake import CMakeMake
1111
from easybuild.easyblocks.openblas import EB_OpenBLAS
1212
from easybuild.framework.easyconfig import CUSTOM
13-
from easybuild.tools.filetools import apply_regex_substitutions, read_file
13+
from easybuild.tools.filetools import apply_regex_substitutions
14+
from easybuild.tools.run import run_shell_cmd
1415
from easybuild.tools.systemtools import get_shared_lib_ext
1516

1617

@@ -76,8 +77,9 @@ def test_step(self):
7677

7778
# check number of failing LAPACK tests more closely
7879
if self.cfg['run_lapack_tests']:
79-
logfile = os.path.join(self.separate_build_dir, 'Testing/Temporary/LastTest.log')
80-
EB_OpenBLAS.check_lapack_test_results(self, read_file(logfile))
80+
netlib_dir = os.path.join(self.cfg['start_dir'], 'netlib-test/libflame_netlib')
81+
res = run_shell_cmd(f"cd {netlib_dir} && ./lapack_testing.py -s")
82+
EB_OpenBLAS.check_lapack_test_results(self, res.output)
8183

8284
def sanity_check_step(self):
8385
""" Custom sanity check for AOCL-LAPACK """

0 commit comments

Comments
 (0)