Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable hwloc and HeFFTe support in GROMACS easyblock #3531

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions easybuild/easyblocks/g/gromacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ def configure_step(self):
cuda_cc_semicolon_sep = self.cfg.get_cuda_cc_template_value(
"cuda_cc_semicolon_sep").replace('.', '')
self.cfg.update('configopts', '-DGMX_CUDA_TARGET_SM="%s"' % cuda_cc_semicolon_sep)

# Enable HeFFTe support for multi-GPU FFT support if it's listed as a dependency
heffte_root = get_software_root('HeFFTe')
if heffte_root:
self.cfg.update('configopts', '-DGMX_USE_HEFFTE=ON')
self.cfg.update('configopts', '-DHeffte_ROOT=%s' % heffte_root)
else:
# explicitly disable GPU support if CUDA is not available,
# to avoid that GROMACS finds and uses a system-wide CUDA compiler
Expand Down Expand Up @@ -238,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.
Expand Down