-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHG: Updated install scripts and configuration for Pleiades
- Loading branch information
1 parent
194feac
commit 898ea8f
Showing
20 changed files
with
662 additions
and
526 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ set -eu | |
|
||
## Constants | ||
# | ||
VER="3.5.3" | ||
VER="3.10.0" | ||
|
||
## Environment | ||
# | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ set -e | |
|
||
## Constants | ||
# | ||
VER="3.8.4" | ||
VER="3.10.0" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gdal/install" | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ set -e | |
|
||
## Constants | ||
# | ||
VER="3.8.4" | ||
VER="3.10.0" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gdal/install" | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ set -e | |
|
||
## Constants | ||
# | ||
VER="3.8.4" | ||
VER="3.10.0" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gdal/install" | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ set -e | |
|
||
## Constants | ||
# | ||
VER="3.8.4" | ||
VER="3.10.0" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gdal/install" | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ set -e | |
|
||
## Constants | ||
# | ||
VER="3.8.4" | ||
VER="3.10.0" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gdal/install" | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ set -e | |
|
||
## Constants | ||
# | ||
VER="3.8.4" | ||
VER="3.10.0" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gdal/install" | ||
|
||
|
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,84 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
|
||
# TODO: | ||
# - Add support for, | ||
# - MUMPS | ||
# - PETSc | ||
# | ||
# See Also: | ||
# - configs/4/static/CMakeLists.txt | ||
# - http://gmsh.info/doc/texinfo/gmsh.html#Compiling-the-source-code | ||
# | ||
|
||
## Constants | ||
# | ||
VER="4.12.2" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed | ||
|
||
BLASLAPACK_LIBFLAGS="-L${COMP_INTEL_ROOT}/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core" | ||
LIBGFORTRAN_LIBFLAGS="-L${COMP_INTEL_ROOT}/compiler/lib/intel64_lin -lifcore -lifport -lgfortran" | ||
|
||
# Environment | ||
# | ||
export CXXFLAGS="${CXXFLAGS} -w" | ||
|
||
# Cleanup | ||
rm -rf ${PREFIX} src | ||
mkdir -p ${PREFIX} src | ||
|
||
# Download source | ||
$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://gmsh.info/src/gmsh-${VER}-source.tgz" "gmsh-${VER}-source.tgz" | ||
|
||
# Unpack source | ||
tar -xvzf gmsh-${VER}-source.tgz | ||
|
||
# Move source to 'src' directory | ||
mv gmsh-${VER}-source/* src | ||
rm -rf gmsh-${VER}-source | ||
|
||
# Configure | ||
# | ||
# NOTE: | ||
# - Option -DENABLE_FLTK=0 is used because we do not need GUI. | ||
# - Option -DENABLE_MPEG_ENCODE=0 is used because we do not need to record MPEG | ||
# movies. | ||
# - Option -DENABLE_OCC=0 is used because we do not need CAD kernel and are not | ||
# importing STEP/IGES files. | ||
# - Option -DENABLE_TOUCHBAR=0 is used because we do not have GUI, therefore we | ||
# do not need to support Apple Touch bar (does not affect compilation on | ||
# Linux). | ||
# | ||
cd src | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \ | ||
-DCMAKE_INSTALL_RPATH="${PREFIX}/lib" \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DENABLE_BUILD_DYNAMIC=1 \ | ||
-DENABLE_BUILD_SHARED=1 \ | ||
-DBLAS_LAPACK_LIBRARIES="${BLASLAPACK_LIBFLAGS} ${LIBGFORTRAN_LIBFLAGS}" \ | ||
-DENABLE_BLAS_LAPACK=1 \ | ||
-DENABLE_EIGEN=0 \ | ||
-DENABLE_FLTK=0 \ | ||
-DENABLE_MPEG_ENCODE=0 \ | ||
-DENABLE_MPI=1 \ | ||
-DENABLE_OCC=0 \ | ||
-DENABLE_TOUCHBAR=0 \ | ||
-DMETIS_ROOT="${PETSC_DIR}/lib" | ||
|
||
# Compile and install | ||
if [ $# -eq 0 ]; then | ||
make | ||
make install | ||
else | ||
make -j $1 | ||
make -j $1 install | ||
fi | ||
|
||
# Make necessary link on RHEL | ||
if [[ -d ${PREFIX}/lib64 && ! -d ${PREFIX}/lib ]]; then | ||
cd ${PREFIX} | ||
ln -s ./lib64 ./lib | ||
fi |
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,72 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
|
||
## Constants | ||
# | ||
VER="6.5.0" | ||
|
||
PREFIX="${ISSM_DIR}/externalpackages/gmt/install" | ||
|
||
BLASLAPACK_LIBFLAGS="-L${COMP_INTEL_ROOT}/mkl/lib/intel64;-lmkl_intel_lp64;-lmkl_sequential;-lmkl_core" | ||
LIBGFORTRAN_LIBFLAGS="-L${COMP_INTEL_ROOT}/compiler/lib/intel64_lin;-lifcore;-lifport;-lgfortran" | ||
|
||
# Environment | ||
# | ||
export CC=mpicc | ||
export CFLAGS="${CFLAGS} -w" | ||
|
||
# Download source | ||
$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://github.com/GenericMappingTools/gmt/archive/refs/tags/${VER}.tar.gz" "gmt-${VER}.tar.gz" | ||
|
||
# Unpack source | ||
tar -zxvf gmt-${VER}.tar.gz | ||
|
||
# Cleanup | ||
rm -rf ${PREFIX} src | ||
mkdir -p ${PREFIX} src | ||
|
||
# Move source to 'src' directory | ||
mv gmt-${VER}/* src | ||
rm -rf gmt-${VER} | ||
|
||
# Copy custom configuration files to source | ||
cp ./src/cmake/ConfigUserAdvancedTemplate.cmake ./src/cmake/ConfigUser.cmake | ||
|
||
# Patch source | ||
patch ./src/cmake/ConfigUser.cmake < ./configs/${VER%.*}/cmake/ConfigUserAdvancedTemplate.cmake.patch | ||
|
||
# Configure | ||
cd src | ||
mkdir build | ||
cd build | ||
|
||
# NOTE: | ||
# - There is a CMake variable named CURL_ROOT in src/cmake/ConfigUser.cmake | ||
# that, ostensibly, allows for supplying the path to curl when it is in a | ||
# non-standard location. That said, newer versions of CMake will ignore said | ||
# variable and instead try to find curl itself. Passing in the two options | ||
# below overrides this behavior. | ||
# | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \ | ||
-DBLAS_LIBRARIES="${BLASLAPACK_LIBFLAGS};${LIBGFORTRAN_LIBFLAGS}" \ | ||
-DCURL_INCLUDE_DIR="${CURL_ROOT}/include" \ | ||
-DCURL_LIBRARY="-L${CURL_ROOT}/lib;-lcurl" \ | ||
-DLAPACK_LIBRARIES="${BLASLAPACK_LIBFLAGS};${LIBGFORTRAN_LIBFLAGS}" \ | ||
.. | ||
|
||
# Compile and install | ||
if [ $# -eq 0 ]; then | ||
make | ||
make install | ||
else | ||
make -j $1 | ||
make -j $1 install | ||
fi | ||
|
||
# Make necessary link on RHEL | ||
if [[ -d ${PREFIX}/lib64 && ! -d ${PREFIX}/lib ]]; then | ||
cd ${PREFIX} | ||
ln -s ./lib64 ./lib | ||
fi |
This file was deleted.
Oops, something went wrong.
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.