Skip to content

Commit

Permalink
Merge pull request #797 from bedroge/score-p_2023b
Browse files Browse the repository at this point in the history
{2023.06][foss/2023b] Score-P 8.4 (CPU-only)
  • Loading branch information
ocaisa authored Oct 29, 2024
2 parents 5fb04c0 + 2bc14d1 commit 76f1820
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
easyconfigs:
- SIONlib-1.7.7-GCCcore-13.2.0-tools.eb:
options:
# see https://github.com/easybuilders/easybuild-easyconfigs/pull/21752
from-commit: 6b8b53493a1188a5baa56a133574daac239730e7
- Score-P-8.4-gompi-2023b.eb:
options:
# see https://github.com/easybuilders/easybuild-easyblocks/pull/3496
include-easyblocks-from-commit: 60633b0acfd41a0732992d9e16800dae71a056eb
24 changes: 24 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,29 @@ def pre_configure_hook_BLIS_a64fx(self, *args, **kwargs):
raise EasyBuildError("BLIS-specific hook triggered for non-BLIS easyconfig?!")


def pre_configure_hook_score_p(self, *args, **kwargs):
"""
Pre-configure hook for Score-p
- specify correct path to binutils (in compat layer)
"""
if self.name == 'Score-P':

# determine path to Prefix installation in compat layer via $EPREFIX
eprefix = get_eessi_envvar('EPREFIX')

binutils_lib_path_glob_pattern = os.path.join(eprefix, 'usr', 'lib*', 'binutils', '*-linux-gnu', '2.*')
binutils_lib_path = glob.glob(binutils_lib_path_glob_pattern)
if len(binutils_lib_path) == 1:
self.cfg.update('configopts', '--with-libbfd-lib=' + binutils_lib_path[0])
self.cfg.update('configopts', '--with-libbfd-include=' + os.path.join(binutils_lib_path[0], 'include'))
else:
raise EasyBuildError("Failed to isolate path for binutils libraries using %s, got %s",
binutils_lib_path_glob_pattern, binutils_lib_path)

else:
raise EasyBuildError("Score-P-specific hook triggered for non-Score-P easyconfig?!")


def pre_configure_hook_extrae(self, *args, **kwargs):
"""
Pre-configure hook for Extrae
Expand Down Expand Up @@ -972,6 +995,7 @@ def inject_gpu_property(ec):
'OpenBLAS': pre_configure_hook_openblas_optarch_generic,
'WRF': pre_configure_hook_wrf_aarch64,
'LAMMPS': pre_configure_hook_LAMMPS_zen4,
'Score-P': pre_configure_hook_score_p,
}

PRE_TEST_HOOKS = {
Expand Down

0 comments on commit 76f1820

Please sign in to comment.