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
b3ba45af
Commit
b3ba45af
authored
8 years ago
by
Adam J. Stewart
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Various improvements to H5hut (#2636)
parent
c89de04f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/h5hut/package.py
+38
-33
38 additions, 33 deletions
var/spack/repos/builtin/packages/h5hut/package.py
with
38 additions
and
33 deletions
var/spack/repos/builtin/packages/h5hut/package.py
+
38
−
33
View file @
b3ba45af
...
@@ -26,45 +26,50 @@
...
@@ -26,45 +26,50 @@
from
spack
import
*
from
spack
import
*
class
H5hut
(
Package
):
class
H5hut
(
AutotoolsPackage
):
"""
H5hut (HDF5 Utility Toolkit)
"""
H5hut (HDF5 Utility Toolkit).
High-Performance I/O Library for Particle-based Simulations
High-Performance I/O Library for Particle-based Simulations.
"""
"""
homepage
=
"
https://amas.psi.ch/H5hut/
"
homepage
=
"
https://amas.psi.ch/H5hut/
"
url
=
"
https://amas.psi.ch/H5hut/raw-attachment/wiki/DownloadSources/H5hut-1.99.13.tar.gz
"
url
=
"
https://amas.psi.ch/H5hut/raw-attachment/wiki/DownloadSources/H5hut-1.99.13.tar.gz
"
version
(
"
1.99.13
"
,
"
2a07a449afe50534de006ac6954a421a
"
)
version
(
'
1.99.13
'
,
'
2a07a449afe50534de006ac6954a421a
'
)
variant
(
"
fortran
"
,
default
=
True
,
description
=
"
Enable Fortran support
"
)
variant
(
'
fortran
'
,
default
=
True
,
description
=
'
Enable Fortran support
'
)
variant
(
"
mpi
"
,
default
=
True
,
description
=
"
Enable MPI support
"
)
variant
(
'
mpi
'
,
default
=
True
,
description
=
'
Enable MPI support
'
)
depends_on
(
"
autoconf @2.60:
"
,
type
=
"
build
"
)
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
depends_on
(
"
automake
"
,
type
=
"
build
"
)
depends_on
(
"
hdf5 +mpi
"
,
when
=
"
+mpi
"
)
depends_on
(
"
hdf5 @1.8:
"
)
# h5hut +mpi uses the obsolete function H5Pset_fapl_mpiposix:
# h5hut +mpi uses the obsolete function H5Pset_fapl_mpiposix:
depends_on
(
"
hdf5 @:1.8.12
"
,
when
=
"
+mpi
"
)
depends_on
(
'
hdf5@1.8:1.8.12+mpi
'
,
when
=
'
+mpi
'
)
depends_on
(
"
libtool
"
,
type
=
"
build
"
)
depends_on
(
'
hdf5@1.8:
'
,
when
=
'
~mpi
'
)
depends_on
(
"
mpi
"
,
when
=
"
+mpi
"
)
def
install
(
self
,
spec
,
prefix
):
# If built in parallel, the following error message occurs:
autogen
=
Executable
(
"
./autogen.sh
"
)
# install: .libs/libH5hut.a: No such file or directory
autogen
()
parallel
=
False
configopts
=
[
"
--prefix={0}
"
.
format
(
prefix
)]
if
"
+fortran
"
in
spec
:
if
not
self
.
compiler
.
fc
:
raise
RuntimeError
(
"
Cannot build Fortran variant without a Fortran compiler
"
)
configopts
.
append
(
"
--enable-fortran
"
)
if
"
+mpi
"
in
spec
:
configopts
.
extend
([
"
--enable-parallel
"
,
"
CC=%s
"
%
spec
[
"
mpi
"
].
mpicc
,
"
CXX=%s
"
%
spec
[
"
mpi
"
].
mpicxx
])
if
"
+fortran
"
in
spec
:
configopts
.
append
(
"
FC=%s
"
%
spec
[
"
mpi
"
].
mpifc
)
configure
(
*
configopts
)
make
()
@AutotoolsPackage.precondition
(
'
configure
'
)
make
(
"
install
"
)
def
validate
(
self
):
"""
Checks if Fortran compiler is available.
"""
if
'
+fortran
'
in
self
.
spec
and
not
self
.
compiler
.
fc
:
raise
RuntimeError
(
'
Cannot build Fortran variant without a Fortran compiler.
'
)
def
configure_args
(
self
):
spec
=
self
.
spec
config_args
=
[
'
--enable-shared
'
]
if
'
+fortran
'
in
spec
:
config_args
.
append
(
'
--enable-fortran
'
)
if
'
+mpi
'
in
spec
:
config_args
.
extend
([
'
--enable-parallel
'
,
'
CC={0}
'
.
format
(
spec
[
'
mpi
'
].
mpicc
),
'
CXX={0}
'
.
format
(
spec
[
'
mpi
'
].
mpicxx
)
])
if
'
+fortran
'
in
spec
:
config_args
.
append
(
'
FC={0}
'
.
format
(
spec
[
'
mpi
'
].
mpifc
))
return
config_args
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