Skip to content

Commit

Permalink
Update to Gromacs 2019 (#13523)
Browse files Browse the repository at this point in the history
  • Loading branch information
stain authored Feb 15, 2019
1 parent d119232 commit d69daf6
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 5 deletions.
File renamed without changes.
10 changes: 5 additions & 5 deletions recipes/gromacs/meta.yaml → recipes/gromacs/2018/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ about:

package:
name: gromacs
version: 2018.4
version: 2018.5

build:
number: 0
Expand All @@ -15,13 +15,13 @@ build:
# for latest release. Note that version scheme changed from
# 5.1 to 2016.x and 2018.x
source:
url: http://ftp.gromacs.org/pub/gromacs/gromacs-2018.4.tar.gz
md5: 7bede4c1a656531fc43b95805e9a5a94
sha256: 6f2ee458c730994a8549d6b4f601ecfc9432731462f8bd4ffa35d330d9aaa891
url: http://ftp.gromacs.org/pub/gromacs/gromacs-2018.5.tar.gz
md5: 1484e421721b7787becf6f88d23292e6
sha256: 32261df6f7ec4149fc0508f9af416953d056e281590359838c1ed6644ba097b8

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
host:
- openmp # [linux]
Expand Down
21 changes: 21 additions & 0 deletions recipes/gromacs/2019/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
mkdir build
cd build
## See INSTALL of gromacs distro
cmake .. \
-DSHARED_LIBS_DEFAULT=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DGMX_PREFER_STATIC_LIBS=YES \
-DGMX_BUILD_OWN_FFTW=OFF \
-DGMX_DEFAULT_SUFFIX=ON \
-DREGRESSIONTEST_DOWNLOAD=ON \
-DGMX_MPI=OFF \
-DGMX_GPU=ON \
-DGMX_SIMD=SSE2 \
-DGMX_USE_OPENCL=ON \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DGMX_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX
make -j 8
make check
make install
50 changes: 50 additions & 0 deletions recipes/gromacs/2019/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
about:
home: http://www.gromacs.org/
license: GNU Lesser General Public License (LGPL)
summary: GROMACS is a versatile package to perform molecular dynamics.

package:
name: gromacs
version: 2019

build:
number: 0
# skip: True # [osx]

# See http://manual.gromacs.org/documentation/
# for latest release. Note that version scheme changed from
# 5.1 to 2016.x and 2018.x
source:
url: http://ftp.gromacs.org/pub/gromacs/gromacs-2019.tar.gz
md5: fcd283dd0fe5ceb54dd9d735d75cbc65
sha256: c5b281a5f0b5b4eeb1f4c7d4dc72f96985b566561ca28acc9c7c16f6ee110d0b

requirements:
build:
- {{ compiler('cxx') }}
- cmake
host:
- openmp # [linux]
- ocl-icd # [linux]
- libhwloc 2.*
- fftw
- perl
- python >=2.7,<3
run:
- ocl-icd # [linux]
- openmp # [linux]
- fftw
- libhwloc 2.*

test:
commands:
- gmx -version


extra:
identifiers:
- biotools:gromacs
- doi:10.5281/zenodo.2424363
- doi:10.5281/zenodo.2424486
- doi:10.1016/j.softx.2015.06.001
- rrid:RRID:SCR_014565
19 changes: 19 additions & 0 deletions recipes/gromacs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
GROMACS versions are released in series, so we maintain one
recipe folder for each major version.

Be careful with the CI build time if updating multiple
recipes, a single build takes about 1h12.

From http://manual.gromacs.org/documentation/2019/release-notes/index.html#gromacs-2019-series

> Major releases contain changes to the functionality supported, whereas patch releases contain only fixes for issues identified in the corresponding major releases.
> Two versions of GROMACS are under active maintenance, the 2019 series and the
> 2018 series. In the latter, only highly conservative fixes will be made, and
> only to address issues that affect scientific correctness.
> Naturally, some of those releases will be made after the year 2018 ends, but
> we keep 2018 in the name so users understand how up to date their version is.
> Such fixes will also be incorporated into the 2019 release series, as
> appropriate. Around the time the 2020 release is made, the 2018 series will no
> longer be maintained.

0 comments on commit d69daf6

Please sign in to comment.