-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1388 from UV-CDAT/issue_1324_netcdf_parallel
Issue 1324 netcdf parallel
- Loading branch information
Showing
30 changed files
with
581 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
set(cffi_deps ${pip_pkg} ${six_pkg} ${ffi_pkg}) | ||
set(CFFI_deps ${pip_pkg} ${six_pkg} ${ffi_pkg} ${pycparser_pkg} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
set(CYTHON_MAJOR 0) | ||
set(CYTHON_MINOR 21) | ||
set(CYTHON_PATCH 2) | ||
set(CYTHON_VERSION ${CYTHON_MAJOR}.${CYTHON_MINOR}.${CYTHON_PATCH}) | ||
set(CYTHON_MINOR 22) | ||
set(CYTHON_PATCH ) | ||
set(CYTHON_VERSION ${CYTHON_MAJOR}.${CYTHON_MINOR}) | ||
set(CYTHON_URL ${LLNL_URL} ) | ||
set(CYTHON_GZ Cython-${CYTHON_VERSION}.tar.gz) | ||
set(CYTHON_MD5 d21adb870c75680dc857cd05d41046a4) | ||
set(CYTHON_MD5 e67b03e8b3667c8e4e7c774ef2e2b638) | ||
set(CYTHON_SOURCE ${CYTHON_URL}/${CYTHON_GZ}) | ||
|
||
add_cdat_package_dependent(Cython "" "" OFF "CDAT_BUILD_LEAN" OFF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
set(HDF5_deps ${pkgconfig_pkg} ${libxml2_pkg} ${libxslt_pkg} ${zlib_pkg}) | ||
if (CDAT_BUILD_PARALLEL) | ||
list(APPEND HDF5_deps ${mpi_pkg}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
set(NetCDF_deps ${pkgconfig_pkg} ${hdf5_pkg} ${curl_pkg} ${zlib_pkg} ${jpeg_pkg} ) | ||
if (CDAT_BUILD_PARALLEL) | ||
list(APPEND NetCDF_deps ${mpi_pkg} ) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set(PNETCDF_deps ${pkgconfig_pkg} ${mpi_pkg}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set(pnetcdf_source "${CMAKE_CURRENT_BINARY_DIR}/build/pnetcdf") | ||
set(pnetcdf_install "${cdat_EXTERNALS}") | ||
set(pnetcdf_configure_args "--with-mpi=${cdat_EXTERNALS}") | ||
set(pnetcdf_additional_cflags "-fPIC") | ||
|
||
ExternalProject_Add(PNETCDF | ||
LIST_SEPARATOR ^^ | ||
DOWNLOAD_DIR ${CDAT_PACKAGE_CACHE_DIR} | ||
SOURCE_DIR ${pnetcdf_source} | ||
INSTALL_DIR ${pnetcdf_install} | ||
URL ${PNETCDF_URL}/${PNETCDF_GZ} | ||
URL_MD5 ${PNETCDF_MD5} | ||
BUILD_IN_SOURCE 1 | ||
CONFIGURE_COMMAND ${CMAKE_COMMAND} -DADDITIONAL_CFLAGS=${pnetcdf_additional_cflags} -DINSTALL_DIR=<INSTALL_DIR> -DWORKING_DIR=<SOURCE_DIR> -D CONFIGURE_ARGS=${pnetcdf_configure_args} -P ${cdat_CMAKE_BINARY_DIR}/cdat_configure_step.cmake | ||
DEPENDS ${PNETCDF_deps} | ||
${ep_log_options} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
set(PNETCDF_MAJOR_SRC 1) | ||
set(PNETCDF_MINOR_SRC 6) | ||
set(PNETCDF_PATCH_SRC 0) | ||
set(PNETCDF_URL ${LLNL_URL}) | ||
set(PNETCDF_GZ parallel-netcdf-${PNETCDF_MAJOR_SRC}.${PNETCDF_MINOR_SRC}.${PNETCDF_PATCH_SRC}.tar.gz) | ||
set(PNETCDF_MD5 4893a50ddcd487a312c64383bdeb2631) | ||
|
||
set (nm PNETCDF) | ||
string(TOUPPER ${nm} uc_nm) | ||
set(${uc_nm}_VERSION ${${nm}_MAJOR_SRC}.${${nm}_MINOR_SRC}.${${nm}_PATCH_SRC}) | ||
set(PNETCDF_SOURCE ${PNETCDF_URL}/${PNETCDF_GZ}) | ||
|
||
add_cdat_package(PNETCDF "" "" OFF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set(PYCPARSER_deps ${python_pkg} ${pip_pkg}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
# create an external project to install MyProxyClient, | ||
# and configure and build it | ||
set(nm PYCPARSER) | ||
|
||
include(pipinstaller) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set(PYCPARSER_MAJOR_SRC 2) | ||
set(PYCPARSER_MINOR_SRC 13) | ||
set(PYCPARSER_PATCH_SRC ) | ||
|
||
set(PYCPARSER_VERSION ${PYCPARSER_MAJOR_SRC}.${PYCPARSER_MINOR_SRC}) | ||
set(PYCPARSER_GZ pycparser-${PYCPARSER_VERSION}.tar.gz) | ||
set(PYCPARSER_SOURCE ${LLNL_URL}/${PYCPARSER_GZ}) | ||
set(PYCPARSER_MD5 e4fe1a2d341b22e25da0d22f034ef32f ) | ||
|
||
add_cdat_package_dependent(PYCPARSER "" "" ON "CDAT_BUILD_LEAN" OFF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
set(PYOPENSSL_deps ${python_pkg} ${pip_pkg}) | ||
set(PYOPENSSL_deps ${python_pkg} ${pip_pkg} ${six_pkg} ${cryptography_pkg} ${cffi_pkg} ${ffi_pkg} ${pycparser_pkg} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
set(ENV{PKG_CONFIG_PATH} "@cdat_EXTERNALS@/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:$ENV{PKG_CONFIG_PATH}") | ||
set(ENV{PKG_CONFIG} "@cdat_PKG_CONFIG_EXECUTABLE@") | ||
|
||
include(@cdat_CMAKE_BINARY_DIR@/cdat_common_environment.cmake) | ||
|
||
set(ENV{CC} mpicc) | ||
|
||
message("CONFIGURE_ARGS IS ${CONFIGURE_ARGS}") | ||
message("LD_ARGS IS $ENV{@LIBRARY_PATH@}") | ||
message("CFLAGS : $ENV{CFLAGS}") | ||
|
||
execute_process( | ||
COMMAND env CC=$ENV{CC} CFLAGS=$ENV{CFLAGS} LD_LIBRARY_PATH=$ENV{@LIBRARY_PATH@} DYLD_FALLBACK_LIBRARY_PATH=$ENV{@LIBRARY_PATH@} @LIBRARY_PATH@=$ENV{@LIBRARY_PATH@} PKG_CONFIG=$ENV{PKG_CONFIG} PKG_CONFIG_PATH=$ENV{PKG_CONFIG_PATH} sh configure --prefix=${INSTALL_DIR} ${CONFIGURE_ARGS} | ||
WORKING_DIRECTORY "${WORKING_DIR}" | ||
RESULT_VARIABLE res) | ||
|
||
if(NOT ${res} EQUAL 0) | ||
message("Config Errors detected: \n${CDAT_OUT}\n${CDAT_ERR}") | ||
message(FATAL_ERROR "Error in config") | ||
endif() | ||
message("Config succeeded.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.