From 53a9a2357729d7e070dc8da548ec123c492becfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bob=20Dr=C3=B6ge?= Date: Fri, 13 Dec 2024 14:03:55 +0100 Subject: [PATCH] enable hwloc support --- easybuild/easyblocks/g/gromacs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/easybuild/easyblocks/g/gromacs.py b/easybuild/easyblocks/g/gromacs.py index c4c2efcd91..604a28c9f7 100644 --- a/easybuild/easyblocks/g/gromacs.py +++ b/easybuild/easyblocks/g/gromacs.py @@ -244,6 +244,11 @@ def configure_step(self): # version of GROMACS. Just prepare first part of cmd here plumed_cmd = "plumed-patch -p -e %s" % engine + # Enable hwloc support if it's listed as dependency + if get_software_root('hwloc'): + self.cfg.update('configopts', '-DGMX_HWLOC=ON') + self.cfg.update('configopts', '-DHWLOC_DIR=%s' % get_software_root('hwloc')) + # Ensure that the GROMACS log files report how the code was patched # during the build, so that any problems are easier to diagnose. # The GMX_VERSION_STRING_OF_FORK feature is available since 2020.