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
d24186ea
Commit
d24186ea
authored
8 years ago
by
Adam J. Stewart
Committed by
Todd Gamblin
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update PnetCDF to AutotoolsPackage (#2637)
parent
d8efeabf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/parallel-netcdf/package.py
+10
-10
10 additions, 10 deletions
var/spack/repos/builtin/packages/parallel-netcdf/package.py
with
10 additions
and
10 deletions
var/spack/repos/builtin/packages/parallel-netcdf/package.py
+
10
−
10
View file @
d24186ea
...
...
@@ -25,7 +25,7 @@
from
spack
import
*
class
ParallelNetcdf
(
Package
):
class
ParallelNetcdf
(
Autotools
Package
):
"""
Parallel netCDF (PnetCDF) is a library providing high-performance
parallel I/O while still maintaining file-format compatibility with
Unidata
'
s NetCDF.
"""
...
...
@@ -41,13 +41,17 @@ class ParallelNetcdf(Package):
variant
(
'
fpic
'
,
default
=
True
,
description
=
'
Produce position-independent code (for shared libs)
'
)
depends_on
(
"
m4
"
,
type
=
'
build
'
)
depends_on
(
"
mpi
"
)
depends_on
(
'
mpi
'
)
depends_on
(
'
m4
'
,
type
=
'
build
'
)
# See:
# https://trac.mcs.anl.gov/projects/parallel-netcdf/browser/trunk/INSTALL
def
install
(
self
,
spec
,
prefix
):
args
=
list
()
def
configure_args
(
self
):
spec
=
self
.
spec
args
=
[
'
--with-mpi={0}
'
.
format
(
spec
[
'
mpi
'
].
prefix
)]
if
'
+fpic
'
in
spec
:
args
.
extend
([
'
CFLAGS=-fPIC
'
,
'
CXXFLAGS=-fPIC
'
,
'
FFLAGS=-fPIC
'
])
if
'
~cxx
'
in
spec
:
...
...
@@ -55,8 +59,4 @@ def install(self, spec, prefix):
if
'
~fortran
'
in
spec
:
args
.
append
(
'
--disable-fortran
'
)
args
.
extend
([
"
--prefix=%s
"
%
prefix
,
"
--with-mpi=%s
"
%
spec
[
'
mpi
'
].
prefix
])
configure
(
*
args
)
make
()
make
(
"
install
"
)
return
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