Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
87610a51
Commit
87610a51
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #448 from epfl-scitas/packages/gromacs
Added package : gromacs
parents
93a74604
30c30474
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/repos/builtin/packages/fftw/package.py
+2
-0
2 additions, 0 deletions
var/spack/repos/builtin/packages/fftw/package.py
var/spack/repos/builtin/packages/gromacs/package.py
+56
-0
56 additions, 0 deletions
var/spack/repos/builtin/packages/gromacs/package.py
with
58 additions
and
0 deletions
var/spack/repos/builtin/packages/fftw/package.py
+
2
−
0
View file @
87610a51
...
@@ -47,6 +47,8 @@ class Fftw(Package):
...
@@ -47,6 +47,8 @@ class Fftw(Package):
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
# TODO : add support for architecture specific optimizations as soon as targets are supported
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
options
=
[
'
--prefix=%s
'
%
prefix
,
options
=
[
'
--prefix=%s
'
%
prefix
,
'
--enable-shared
'
,
'
--enable-shared
'
,
...
...
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/gromacs/package.py
0 → 100644
+
56
−
0
View file @
87610a51
from
spack
import
*
class
Gromacs
(
Package
):
"""
GROMACS (GROningen MAchine for Chemical Simulations) is a molecular dynamics package primarily designed for
simulations of proteins, lipids and nucleic acids. It was originally developed in the Biophysical Chemistry
department of University of Groningen, and is now maintained by contributors in universities and research centers
across the world.
GROMACS is one of the fastest and most popular software packages available and can run on CPUs as well as GPUs.
It is free, open source released under the GNU General Public License. Starting from version 4.6, GROMACS is
released under the GNU Lesser General Public License.
"""
homepage
=
'
http://www.gromacs.org
'
url
=
'
ftp://ftp.gromacs.org/pub/gromacs/gromacs-5.1.2.tar.gz
'
version
(
'
5.1.2
'
,
'
614d0be372f1a6f1f36382b7a6fcab98
'
)
variant
(
'
mpi
'
,
default
=
True
,
description
=
'
Activate MPI support
'
)
variant
(
'
shared
'
,
default
=
True
,
description
=
'
Enables the build of shared libraries
'
)
variant
(
'
debug
'
,
default
=
False
,
description
=
'
Enables debug mode
'
)
variant
(
'
double
'
,
default
=
False
,
description
=
'
Produces a double precision version of the executables
'
)
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
depends_on
(
'
fftw
'
)
# TODO : add GPU support
def
install
(
self
,
spec
,
prefix
):
options
=
[]
if
'
+mpi
'
in
spec
:
options
.
append
(
'
-DGMX_MPI:BOOL=ON
'
)
if
'
+double
'
in
spec
:
options
.
append
(
'
-DGMX_DOUBLE:BOOL=ON
'
)
if
'
~shared
'
in
spec
:
options
.
append
(
'
-DBUILD_SHARED_LIBS:BOOL=OFF
'
)
if
'
+debug
'
in
spec
:
options
.
append
(
'
-DCMAKE_BUILD_TYPE:STRING=Debug
'
)
else
:
options
.
append
(
'
-DCMAKE_BUILD_TYPE:STRING=Release
'
)
options
.
extend
(
std_cmake_args
)
with
working_dir
(
'
spack-build
'
,
create
=
True
):
cmake
(
'
..
'
,
*
options
)
make
()
make
(
'
install
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment