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
c8f01480
Commit
c8f01480
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #128 from mathstuf/netcdf-new-linker-mpi
netcdf: link to MPI
parents
c388cbe8
9ec4ae83
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/packages/netcdf/netcdf-4.3.3-mpi.patch
+25
-0
25 additions, 0 deletions
var/spack/packages/netcdf/netcdf-4.3.3-mpi.patch
var/spack/packages/netcdf/package.py
+14
-15
14 additions, 15 deletions
var/spack/packages/netcdf/package.py
with
39 additions
and
15 deletions
var/spack/packages/netcdf/netcdf-4.3.3-mpi.patch
0 → 100644
+
25
−
0
View file @
c8f01480
diff -Nur netcdf-4.3.3/CMakeLists.txt netcdf-4.3.3.mpi/CMakeLists.txt
--- netcdf-4.3.3/CMakeLists.txt 2015-02-12 16:44:35.000000000 -0500
+++ netcdf-4.3.3.mpi/CMakeLists.txt 2015-10-14 16:44:41.176300658 -0400
@@ -753,6 +753,7 @@
SET(USE_PARALLEL OFF CACHE BOOL "")
MESSAGE(STATUS "Cannot find HDF5 library built with parallel support. Disabling parallel build.")
ELSE()
+ FIND_PACKAGE(MPI REQUIRED)
SET(USE_PARALLEL ON CACHE BOOL "")
SET(STATUS_PARALLEL "ON")
ENDIF()
diff -Nur netcdf-4.3.3/liblib/CMakeLists.txt netcdf-4.3.3.mpi/liblib/CMakeLists.txt
--- netcdf-4.3.3/liblib/CMakeLists.txt 2015-02-12 16:44:35.000000000 -0500
+++ netcdf-4.3.3.mpi/liblib/CMakeLists.txt 2015-10-14 16:44:57.757793634 -0400
@@ -71,6 +71,10 @@
SET(TLL_LIBS ${TLL_LIBS} ${CURL_LIBRARY})
ENDIF()
+IF(USE_PARALLEL)
+ SET(TLL_LIBS ${TLL_LIBS} ${MPI_C_LIBRARIES})
+ENDIF()
+
IF(USE_HDF4)
SET(TLL_LIBS ${TLL_LIBS} ${HDF4_LIBRARIES})
ENDIF()
This diff is collapsed.
Click to expand it.
var/spack/packages/netcdf/package.py
+
14
−
15
View file @
c8f01480
from
spack
import
*
from
spack
import
*
class
Netcdf
(
Package
):
class
Netcdf
(
Package
):
"""
NetCDF is a set of software libraries and self-describing, machine-independent
"""
NetCDF is a set of software libraries and self-describing, machine-independent
data formats that support the creation, access, and sharing of array-oriented
data formats that support the creation, access, and sharing of array-oriented
scientific data.
"""
scientific data.
"""
homepage
=
"
http://www.unidata.ucar.edu/software/netcdf/
"
homepage
=
"
http://www.unidata.ucar.edu/software/netcdf/
"
url
=
"
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.tar.gz
"
url
=
"
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.3.tar.gz
"
version
(
'
4.3.3
'
,
'
5fbd0e108a54bd82cb5702a73f56d2ae
'
)
version
(
'
4.3.3
'
,
'
5fbd0e108a54bd82cb5702a73f56d2ae
'
)
patch
(
'
netcdf-4.3.3-mpi.patch
'
)
# Dependencies:
# Dependencies:
# >HDF5
# >HDF5
depends_on
(
"
hdf5
"
)
depends_on
(
"
hdf5
"
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
configure
(
with
working_dir
(
'
spack-build
'
,
create
=
True
):
"
--prefix=%s
"
%
prefix
,
cmake
(
'
..
'
,
"
--disable-dap
"
,
# Disable DAP.
"
-DCMAKE_INSTALL_PREFIX:PATH=%s
"
%
prefix
,
"
--disable-shared
"
,
# Don't build shared libraries (use static libs).
"
-DENABLE_DAP:BOOL=OFF
"
,
# Disable DAP.
"
CPPFLAGS=-I%s/include
"
%
spec
[
'
hdf5
'
].
prefix
,
# Link HDF5's include dir.
"
-DBUILD_SHARED_LIBS:BOOL=OFF
"
)
# Don't build shared libraries (use static libs).
"
LDFLAGS=-L%s/lib
"
%
spec
[
'
hdf5
'
].
prefix
)
# Link HDF5's lib dir.
make
(
"
install
"
)
# Check the newly installed netcdf package. Currently disabled.
make
()
# make("check
")
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