Skip to content

Commit

Permalink
adding easyconfigs: GROMACS-2023.3-foss-2023a-PLUMED-2.9.0.eb
Browse files Browse the repository at this point in the history
  • Loading branch information
Neves-P committed Aug 12, 2024
1 parent 9e2590b commit f6d167d
Showing 1 changed file with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
# Copyright:: Copyright 2012-2016 University of Luxembourg / LCSB, Cyprus Institute / CaSToRC,
# Ghent University / The Francis Crick Institute
# Authors::
# * Wiktor Jurkowski <[email protected]>
# * Fotis Georgatos <[email protected]>
# * George Tsouloupas <[email protected]>
# * Kenneth Hoste <[email protected]>
# * Adam Huffman <[email protected]>
# * Ake Sandgren <[email protected]>
# * J. Sassmannshausen <Crick HPC team>
# * Dugan Witherick <[email protected]>
# * Christoph Siegert <[email protected]>
# License:: MIT/GPL

name = 'GROMACS'
version = '2023.3'
_plumedver = '2.9.0'
versionsuffix = '-PLUMED-%s' % _plumedver

homepage = 'https://www.gromacs.org'
description = """
GROMACS is a versatile package to perform molecular dynamics, i.e. simulate the
Newtonian equations of motion for systems with hundreds to millions of
particles.
This is a CPU only build, containing both MPI and threadMPI binaries
for both single and double precision.
It also contains the gmxapi extension for the single precision MPI build
next to PLUMED."""

toolchain = {'name': 'foss', 'version': '2023a'}
toolchainopts = {'openmp': True, 'usempi': True}

source_urls = [
'https://ftp.gromacs.org/pub/gromacs/',
'ftp://ftp.gromacs.org/pub/gromacs/',
]
sources = [SOURCELOWER_TAR_GZ]
patches = [
'GROMACS-2023.1_set_omp_num_threads_env_for_ntomp_tests.patch',
'GROMACS-2023.1_fix_tests_for_gmx_thread_mpi.patch',
'%(name)s-%(version)s_skip_test_for_plumed.patch',
]
checksums = [
{'gromacs-2023.3.tar.gz': '4ec8f8d0c7af76b13f8fd16db8e2c120e749de439ae9554d9f653f812d78d1cb'},
{'GROMACS-2023.1_set_omp_num_threads_env_for_ntomp_tests.patch':
'7f41bda16c9c2837624265dda4be252f655d1288ddc4486b1a2422af30d5d199'},
{'GROMACS-2023.1_fix_tests_for_gmx_thread_mpi.patch':
'6df844bb3bbc51180446a3595c61a4ef195e5f975533a04cef76841aa763aec1'},
{'GROMACS-2023.3_skip_test_for_plumed.patch':
'6c541ee74f71f6a63950134d9d0e3afb176a2e25e76e017b4d1986a59163c083'},
]

builddependencies = [
('CMake', '3.26.3'),
('scikit-build', '0.17.6'),
('Doxygen', '1.9.7'),
]

dependencies = [
('Python', '3.11.3'),
('SciPy-bundle', '2023.07'),
('networkx', '3.1'),
('mpi4py', '3.1.4'),
('PLUMED', _plumedver),
]


configopts = '-DCMAKE_CXX_FLAGS="$CXXFLAGS -fpermissive" '

# PLUMED 2.9.0 is compatible with GROMACS 2023; 2023.3 seems to work fine too
ignore_plumed_version_check = True

exts_defaultclass = 'PythonPackage'

exts_default_options = {
'source_urls': [PYPI_SOURCE],
'use_pip': True,
'download_dep_fail': True,
'sanity_pip_check': True,
}

exts_list = [
('gmxapi', '0.4.2', {
'preinstallopts': 'export CMAKE_ARGS="-Dgmxapi_ROOT=%(installdir)s ' +
'-C %(installdir)s/share/cmake/gromacs_mpi/gromacs-hints_mpi.cmake" && ',
'source_tmpl': 'gromacs-2023.3.tar.gz',
'start_dir': 'python_packaging/gmxapi',
'checksums': ['4ec8f8d0c7af76b13f8fd16db8e2c120e749de439ae9554d9f653f812d78d1cb'],
}),
]

modextrapaths = {
'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'

0 comments on commit f6d167d

Please sign in to comment.