...
 
Commits (5)
......@@ -3,11 +3,11 @@
source ../common.sh
LIB_NAME="boost"
LIB_VERSION=1.65.0
LIB_VERSION_DOWNLOAD=1_65_0
GCC_VERSION=6.4.0
LIB_VERSION=1.68.0
LIB_VERSION_DOWNLOAD=1_68_0
GCC_VERSION=8.3.0 # 6.4.0
MPI_LIB=openmpi
MPI_VERSION=1.10.7 #2.1.1
MPI_VERSION=4.0.2 #3.1.4 #1.10.7 #2.1.1
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION
......
#!/bin/bash
source ../common.sh
source /etc/profile.d/modules.sh
LIB_NAME="cmake"
LIB_VERSION=3.9.2
LIB_VERSION=3.14.0
GCC_VERSION=6.4.0
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
......
......@@ -13,6 +13,14 @@ mkdir -p $BASE_WORK_DIR
mkdir -p $BASE_INSTALL_DIR
mkdir -p $BASE_MODULE_DIR
download()
{
if [[ ! -f $ARCHIVE ]]; then
mkdir -p $WORK_DIR
wget $URL -O $ARCHIVE || { echo 'Download failed' ; exit 1; }
fi
}
clean_dir()
{
if [[ -d $1 ]]
......
......@@ -3,8 +3,8 @@
source ../common.sh
LIB_VERSION=develop
#LIB_VERSION=v0.105.0 #v0.104.0
GCC_VERSION=6.4.0
#LIB_VERSION=v0.106.0 #v0.105.0 #v0.104.0
GCC_VERSION=8.3.0 #6.4.0
MPI_LIB=openmpi
MPI_VERSION=1.10.7 #2.1.1 #1.10.7
GCC_FULL=gcc-$GCC_VERSION
......@@ -71,12 +71,11 @@ cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${INSTALL_LIB_DIR} \
-DCMAKE_CXX_FLAGS="-Wno-expansion-to-defined" \
-DFEELPP_ENABLE_OMC=OFF -DFEELPP_ENABLE_FMILIB=OFF \
-DFEELPP_ENABLE_QUICKSTART=OFF \
-DFEELPP_ENABLE_DOCUMENTATION=OFF -DFEELPP_ENABLE_BENCHMARKS=OFF -DFEELPP_ENABLE_TESTS=OFF \
$SRC_DIR/feelpp || exit 1
cd $BUILD_LIB_DIR/cmake && make install || exit 1
cd $BUILD_LIB_DIR/contrib && make install -j16 || exit 1
cd $BUILD_LIB_DIR/feel && make install -j16 || exit 1
cd $BUILD_LIB_DIR/applications/mesh && make install -j16 || exit 1
cd $BUILD_LIB_DIR/applications/databases && make install -j16 || exit 1
cd $BUILD_LIB_DIR/data && make install || exit 1
cd $BUILD_LIB_DIR/feelpp && make install -j16 || exit 1
}
install_lib_quickstart()
......@@ -101,7 +100,7 @@ install_lib_quickstart()
-DCMAKE_C_COMPILER=clang \
-DCMAKE_INSTALL_PREFIX=${INSTALL_QUICKSTART_DIR} \
-DFEELPP_DIR=${FEELPP_DIR} \
$SRC_DIR/feelpp/quickstart || exit 1
$SRC_DIR/feelpp/feelpp/quickstart || exit 1
make install -j16
}
......@@ -172,7 +171,8 @@ install_module_tooboxes()
}
if [[ $1 == "module" ]]; then
install_module_lib
#install_module_lib
#install_module_quickstart
install_module_tooboxes
exit 1
fi
......@@ -195,6 +195,18 @@ if [[ $1 == "feelpp-toolboxes" ]]; then
exit 1
fi
if [[ $1 == "remove" ]]; then
rm -rI $BUILD_LIB_DIR
rm -rI $BUILD_QUICKSTART_DIR
rm -rI $BUILD_TOOLBOXES_DIR
rm -rI $INSTALL_LIB_DIR
rm -rI $INSTALL_QUICKSTART_DIR
rm -rI $INSTALL_TOOLBOXES_DIR
rm -I $MODULE_LIB_PATH
rm -I $MODULE_QUICKSTART_PATH
rm -I $MODULE_TOOLBOXES_PATH
exit 1
fi
install_lib
install_module_lib
install_lib_quickstart
......
......@@ -16,6 +16,7 @@ set prefix {{ INSTALL_LIB_DIR }}
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path LIBRARY_PATH $prefix/lib
prepend-path PYTHONPATH $prefix/lib/python3.5/site-packages/
setenv FEELPP_DIR $prefix
if [module-info mode load] {
......
......@@ -16,6 +16,7 @@ set prefix {{ INSTALL_TOOLBOXES_DIR }}
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path LIBRARY_PATH $prefix/lib
prepend-path PYTHONPATH $prefix/lib/python3.5/site-packages/
setenv FEELPP_TOOLBOXES_DIR $prefix
setenv FEELPP_TOOLBOXES_TESTCASES_DIR $prefix/share/feelpp/testcases
......
......@@ -3,7 +3,7 @@
source ../common.sh
LIB_NAME="fftw"
LIB_VERSION=3.3.7
LIB_VERSION=3.3.7-pl2
GCC_VERSION=6.4.0
MPI_LIB=openmpi
MPI_VERSION=1.10.7
......@@ -35,10 +35,7 @@ sleep 2
mpirun --version | head -n 1
sleep 2
if [[ ! -f $ARCHIVE ]]; then
mkdir -p $WORK_DIR
wget $URL -O $ARCHIVE
fi
download_archive
if [[ ! -d $SRC_DIR ]]; then
tar zxf $ARCHIVE --directory $WORK_DIR
......
#!/bin/bash
set -x
#set -x
MODULE_CATEGORY="libs"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source ../common.sh
LIB_NAME="fmilib"
LIB_VERSION=2.0.3
GCC_VERSION=6.4.0
CMAKE_VERSION=3.9.2
# Use cern repository! (patched version)
FMIL_URL=http://www.jmodelica.org/downloads/FMIL/FMILibrary-${LIB_VERSION}-src.zip
GCC_VERSION=8.3.0
GCC_FULL=gcc-$GCC_VERSION
GCC_SHORT="gcc${GCC_VERSION//.}"
LIB_VERSION_MAJOR=`echo "${LIB_VERSION}" | sed 's/\([0-9]\)[.][0-9][.][0-9]/\1/g'`
LIB_VERSION_MINOR=`echo "${LIB_VERSION}" | sed 's/[0-9][.]\([0-9]\)[.][0-9]/\1/g'`
LIB_VERSION_PATCH=`echo "${LIB_VERSION}" | sed 's/[0-9][.][0-9][.]\([0-9]\)/\1/g'`
GCC_VERSION_MAJOR=`echo "${GCC_VERSION}" | sed 's/\([0-9]\)[.][0-9][.][0-9]/\1/g'`
GCC_VERSION_MINOR=`echo "${GCC_VERSION}" | sed 's/[0-9][.]\([0-9]\)[.][0-9]/\1/g'`
GCC_VERSION_PATCH=`echo "${GCC_VERSION}" | sed 's/[0-9][.][0-9][.]\([0-9]\)/\1/g'`
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}
WORK_DIR=${BASE_WORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/fmi-library-${LIB_VERSION}
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=${BASE_INSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEPEND_GCC=gcc-${GCC_VERSION_MAJOR}${GCC_VERSION_MINOR}${GCC_VERSION_PATCH}
DEPEND_MODULE_GCC=gcc${GCC_VERSION_MAJOR}${GCC_VERSION_MINOR}${GCC_VERSION_PATCH}
# Use cern repository! (patched version)
URL="https://github.com/modelon-community/fmi-library/archive/${LIB_VERSION}.tar.gz"
SOURCE_DIR=${BASE_WORK_DIR}/${LIB_NAME}/${LIB_VERSION}/${DEPEND_GCC}
BUILD_DIR=${PREBUILD_DIR}/${LIB_NAME}/${LIB_VERSION}/${DEPEND_GCC}/build
INSTALL_DIR=${BASE_INSTALL_DIR}/${LIB_NAME}/${LIB_VERSION}/${DEPEND_GCC}
MODULE_CATEGORY="libs"
MODULE_DIR=${BASE_MODULE_DIR}/${MODULE_CATEGORY}/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${DEPEND_MODULE_GCC}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}
ARCHIVE=${WORK_DIR}/${LIB_VERSION}.zip
prepare_lib()
install_lib()
{
# Prepare directories.
mkdir -p ${SOURCE_DIR}
cd ${SOURCE_DIR}
wget ${FMIL_URL}
unzip FMILibrary-${LIB_VERSION}-src.zip
}
build_lib() {
echo "-- Building ${LIB_NAME}-${LIB_VERSION}"
if [[ ! -d ${BUILD_DIR} ]]; then
mkdir -p ${BUILD_DIR}
else
echo "[WARNING] Build directory exist! Remove it first ! ${BUILD_DIR}"
exit 1
fi
module purge
module load gcc/${GCC_VERSION}
module load cmake/${CMAKE_VERSION}_${GCC_VERSION_MAJOR}${GCC_VERSION_MINOR}${GCC_VERSION_PATCH}
module load cmake/3.9.2_gcc640
module list
# Check gcc version here
gcc --version |head -n 1
sleep 2
cmake -DCMAKE_C_COMPILER=`which gcc` \
-DCMAKE_CXX_COMPILER=`which g++` \
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/ \
-DFMILIB_INSTALL_PREFIX=${INSTALL_DIR}/ \
-DCMAKE_BUILD_TYPE=Release \
${SOURCE_DIR}/FMILibrary-${LIB_VERSION}
if [[ ! -f $ARCHIVE ]]; then
mkdir -p $WORK_DIR
wget $URL -O $ARCHIVE
fi
cmake --build . -- -j
}
if [[ ! -d $SRC_DIR ]]; then
tar zxf $ARCHIVE --directory $WORK_DIR
fi
if [[ ! -d $BUILD_DIR ]]; then
mkdir $BUILD_DIR
cd $BUILD_DIR
cmake -DCMAKE_C_COMPILER=`which gcc` \
-DCMAKE_CXX_COMPILER=`which g++` \
-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}/ \
-DFMILIB_INSTALL_PREFIX=${INSTALL_DIR}/ \
-DCMAKE_BUILD_TYPE=Release \
${SRC_DIR}
fi
cd $BUILD_DIR
make -j || exit 1
make -j install || exit 1
install_lib()
{
cmake --build . --target install
}
install_module()
......@@ -86,14 +78,8 @@ install_module()
if [[ $1 == "module" ]]
then
echo ""
# install_module
elif [[ $1 == "clean" ]]
then
clean_all
install_module
else
prepare_lib
build_lib
install_lib
install_module
fi
......@@ -12,4 +12,5 @@ make install
cd /etc/apache2/sites-enabled/
ln -s /var/www/ganglia2/apache.conf
service apache2 restart
......@@ -3,7 +3,9 @@
source ../common.sh
export LIB_NAME="gcc"
export LIB_VERSION=6.4.0
export LIB_VERSION_MAJOR=8 #6
export LIB_VERSION_MINOR=3 #4
export LIB_VERSION=${LIB_VERSION_MAJOR}.${LIB_VERSION_MINOR}.0
export LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
#export LIB_VERSION_SHORT="${LIB_VERSION//.}"
......@@ -36,8 +38,8 @@ fi
if [[ ! -d $BUILD_DIR ]]; then
mkdir $BUILD_DIR
cd $BUILD_DIR
${SRC_DIR}/configure -v --with-pkgversion='gcc 6.4.0' \
--with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs \
${SRC_DIR}/configure -v --with-pkgversion="gcc ${LIB_VERSION}" \
--with-bugurl=file:///usr/share/doc/gcc-${LIB_VERSION_MAJOR}/README.Bugs \
--enable-languages=c,c++,fortran \
--enable-shared \
--enable-linker-build-id \
......
#!/bin/bash
set -x
source ../common.sh
LIB_NAME="gmsh"
LIB_VERSION=2.16.0
GCC_VERSION=6.4.0
LIB_VERSION=4.3.0
GCC_VERSION=8.3.0 #6.4.0
MPI_LIB=openmpi
MPI_VERSION=4.0.2 # 1.10.7 #2.1.1 #1.10.7
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION}
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION
GCC_SHORT="gcc${GCC_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=${BASE_WORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}-source
ARCHIVE=${WORK_DIR}/${LIB_FULLNAME}.tgz
......@@ -17,12 +22,16 @@ BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=${BASE_INSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=${BASE_MODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib()
{
module purge
module load gcc/${GCC_VERSION}
module load ${MPI_LIB}/${MPI_VERSION}_${GCC_SHORT}
module load hdf5/1.10.5_${GCC_SHORT}_${MPI_SHORT}
module load med/4.0.0_${GCC_SHORT}_${MPI_SHORT}
module list
gcc --version |head -n 1
sleep 2
......@@ -41,14 +50,20 @@ if [[ ! -d $BUILD_DIR ]]; then
cd $BUILD_DIR
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
-DENABLE_MPI=OFF \
-DENABLE_MPI=ON \
-DENABLE_BUILD_LIB=ON \
-DENABLE_BUILD_SHARED=ON \
-DCMAKE_BUILD_TYPE=release \
-DENABLE_PETSC=OFF \
-DCMAKE_CXX_FLAGS="-isystem ${MED_DIR}/include" \
-DENABLE_MED=ON -DMED_LIB=${MED_DIR}/lib/libmedC.so \
${SRC_DIR}
fi
# Patch gmsh add this line in gmsh-4.3.0-source/Common/CommandLine.cpp line 27 after inclyde FL.h and also in gmsh-4.3.0-source/Fltk/helpWindow.cpp
#undef Status
cd $BUILD_DIR
make -j || exit 1
make -j install || exit 1
......@@ -62,6 +77,9 @@ mkdir -p ${MODULE_DIR}
export LIB_NAME
export LIB_VERSION
export INSTALL_DIR
export GMSH_LOAD_MODULES=$(echo -e "module load hdf5/1.10.5_${GCC_SHORT}_${MPI_SHORT}\nmodule load med/4.0.0_${GCC_SHORT}_${MPI_SHORT}")
envtpl --keep-template -o $MODULE_PATH module.tmpl
}
......
......@@ -18,3 +18,6 @@ prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path LIBRARY_PATH $prefix/lib
setenv GMSH_DIR $prefix
if [module-info mode load] {
{{ GMSH_LOAD_MODULES }}
}
\ No newline at end of file
......@@ -3,10 +3,11 @@
source ../common.sh
LIB_NAME="hdf5"
LIB_VERSION=1.10.1
GCC_VERSION=6.4.0
LIB_VERSION=1.10.5
LIB_SHORT_VERSION=1.10
GCC_VERSION=8.3.0 #6.4.0
MPI_LIB=openmpi
MPI_VERSION=2.1.1
MPI_VERSION=4.0.2 #1.10.7 #2.1.1
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION
......@@ -17,7 +18,9 @@ SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=${BASE_WORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz
URL="https://www.hdfgroup.org/package/gzip/?wpdmdl=4301"
#URL="https://www.hdfgroup.org/package/gzip/?wpdmdl=4301"
URL="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${LIB_SHORT_VERSION}/hdf5-${LIB_VERSION}/src/hdf5-${LIB_VERSION}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=${BASE_INSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
......
module purge
module load openmpi/1.10.7_gcc640
module load hdf5/1.10.1_gcc640_openmpi1107
pip3 install --user mpi4py
export CC=mpicc
export HDF5_MPI="ON"
export HDF5_DIR=$HDF5_ROOT
pip3 install --user --no-binary=h5py h5py
#!/bin/bash
source ../common.sh
source /etc/profile.d/modules.sh
LIB_NAME="llvm"
LIB_VERSION=5.0.0 #4.0.1
GCC_VERSION=6.4.0
LIB_VERSION=7.0.1 #6.0.1 #5.0.0 #4.0.1
GCC_VERSION=8.3.0 #6.4.0
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION
......
#!/bin/bash
source ../common.sh
LIB_NAME="med"
LIB_VERSION=4.0.0
GCC_VERSION=8.3.0 #6.4.0
MPI_LIB=openmpi
MPI_VERSION=4.0.2 #1.10.7 #2.1.1 #1.10.7
MPI_SHORT="${MPI_LIB}${MPI_VERSION//.}"
MPI_FULL=${MPI_LIB}-${MPI_VERSION}
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION
GCC_SHORT="gcc${GCC_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/${GCC_FULL}/${MPI_FULL}
WORK_DIR=${BASE_WORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${WORK_DIR}/${LIB_FULLNAME}.tar.gz
URL="http://files.salome-platform.org/Salome/other/med-${LIB_VERSION}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=${BASE_INSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=${BASE_MODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib()
{
module purge
module load gcc/${GCC_VERSION}
module load ${MPI_LIB}/${MPI_VERSION}_${GCC_SHORT}
module load hdf5/1.10.5_${GCC_SHORT}_${MPI_SHORT}
module list
gcc --version |head -n 1
sleep 2
mpirun --version |head -n 1
sleep 2
if [[ ! -f $ARCHIVE ]]; then
mkdir -p $WORK_DIR
wget $URL -O $ARCHIVE
fi
if [[ ! -d $SRC_DIR ]]; then
tar zxf $ARCHIVE --directory $WORK_DIR
fi
if [[ ! -d $BUILD_DIR ]]; then
mkdir $BUILD_DIR
cd $BUILD_DIR
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
-DCMAKE_BUILD_TYPE=release \
-DMEDFILE_USE_MPI=ON \
-DMEDFILE_BUILD_TESTS=OFF \
-DHDF5_ROOT_DIR=${HDF5_ROOT} \
${SRC_DIR}
fi
cd $BUILD_DIR
make -j || exit 1
make -j install || exit 1
}
install_module()
{
cd $SCRIPT_DIR
mkdir -p ${MODULE_DIR}
export LIB_NAME
export LIB_VERSION
export INSTALL_DIR
envtpl --keep-template -o $MODULE_PATH module.tmpl
}
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
fi
#%Module1.0#####################################################################
###
### {{ LIB_NAME }} {{ LIB_VERSION }}
###
proc ModulesHelp { } {
global version prefix
puts stderr "\tlibs//{{ LIB_NAME }}/{{ LIB_VERSION }} - loads {{ LIB_NAME }} {{ LIB_VERSION }}"
}
module-whatis "Loads {{ LIB_NAME }} {{ LIB_VERSION }}"
# for Tcl script use only
set prefix {{ INSTALL_DIR }}
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path LIBRARY_PATH $prefix/lib
setenv MED_DIR $prefix
......@@ -6,7 +6,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LIB_NAME="mongoc"
LIB_VERSION=1.9.4
GCC_VERSION=6.4.0
GCC_VERSION=8.3.0 #6.4.0
MONGOC_URL=https://github.com/mongodb/mongo-c-driver/releases/download/${LIB_VERSION}/mongo-c-driver-${LIB_VERSION}.tar.gz
......
......@@ -18,3 +18,7 @@ prepend-path CMAKE_PREFIX_PATH $prefix
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path MANPATH $prefix/share/man
setenv LIBBSON_DIR $prefix
setenv LIBMONGOC_DIR $prefix
prepend-path PKG_CONFIG_PATH $prefix/lib/pkgconfig
\ No newline at end of file
......@@ -14,7 +14,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LIB_NAME="ninja"
LIB_VERSION=1.8.2
GCC_VERSION=6.4.0
CMAKE_VERSION=3.9.2
CMAKE_VERSION=3.12.0
MODULE_CATEGORY="tools"
# Use cern repository! (patched version)
......
#!/bin/bash
source ../common.sh
LIB_NAME="nvtop"
URL="https://github.com/Syllo/nvtop.git"
install_lib()
{
module load cmake
cd $BASE_WORK_DIR
git clone $URL
cd $LIB_NAME
mkdir -p build && cd build
#cmake ..
# If it errors with "Could NOT find NVML (missing: NVML_INCLUDE_DIRS)"
# try the following command instead, otherwise skip to the build with make.
cmake .. -DNVML_RETRIEVE_HEADER_ONLINE=True
make -j
make install # You may need sufficent permission for that (root)
}
install_lib
nvtop @ b7d626a8
Subproject commit b7d626a8bc6c4e4e7c5970eae9a24a5e836b25b3
......@@ -3,9 +3,16 @@
source ../common.sh
LIB_NAME="openmpi"
LIB_MAJOR_VERSION=1.10
LIB_VERSION=${LIB_MAJOR_VERSION}.7
GCC_VERSION=6.4.0
#LIB_MAJOR_VERSION=1.10
#LIB_VERSION=${LIB_MAJOR_VERSION}.7
LIB_MAJOR_VERSION=4.0
LIB_VERSION=${LIB_MAJOR_VERSION}.2
#LIB_MAJOR_VERSION=3.1
#LIB_VERSION=${LIB_MAJOR_VERSION}.4
#LIB_VERSION=${LIB_MAJOR_VERSION}.5rc1
GCC_VERSION=8.3.0 #6.4.0
UCX_VERSION=1.6.1
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_VERSION_SHORT="${GCC_VERSION//.}"
......@@ -22,8 +29,9 @@ MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_gcc${GCC_VERSION_SHORT}
module purge
module load gcc/${GCC_VERSION}
module load ucx/${UCX_VERSION}_gcc${GCC_VERSION_SHORT}
gcc --version | head -n 1
ucx_info -v | head -n 1
install_lib()
{
......@@ -39,9 +47,12 @@ install_lib()
if [[ ! -d $BUILD_DIR ]]; then
mkdir $BUILD_DIR
cd $BUILD_DIR
# --without-verbs remove btl support for InfiniBand, now delegate ib to ucx
${SRC_DIR}/configure \
--enable-mpi-thread-multiple \
--prefix=${INSTALL_DIR}
--enable-mpi-thread-multiple \
--with-ucx=${UCX_DIR} \
--without-verbs \
--prefix=${INSTALL_DIR}
fi
cd $BUILD_DIR
......@@ -57,6 +68,7 @@ install_module()
export LIB_NAME
export LIB_VERSION
export INSTALL_DIR
export OPENMPI_LOAD_MODULES=$(echo -e "module load ucx/${UCX_VERSION}_gcc${GCC_VERSION_SHORT}")
envtpl --keep-template -o $MODULE_PATH module.tmpl
}
......
......@@ -18,3 +18,6 @@ prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path MANPATH $prefix/share/man
if [module-info mode load] {
{{ OPENMPI_LOAD_MODULES }}
}
......@@ -3,13 +3,13 @@
source ../common.sh
LIB_NAME="paraview"
LIB_VERSION_URL=5.4.1
LIB_VERSION_URL=5.7.0 #5.4.1
LIB_VERSION=${LIB_VERSION_URL}-py3
GCC_VERSION=6.4.0
GCC_VERSION=8.3.0 #6.4.0
MPI_LIB=openmpi
MPI_VERSION=1.10.7
HDF5_VERSION=1.10.1
CMAKE_VERSION=3.9.2
MPI_VERSION=4.0.2 #1.10.7
HDF5_VERSION=1.10.5 #1.10.1
#CMAKE_VERSION=3.12.0 #3.9.2
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
LIB_VERSION_SHORT="${LIB_VERSION%.*}"
......@@ -28,14 +28,13 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=${BASE_MODULE_DIR}/tools/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_${GCC_SHORT}_${MPI_SHORT}
install_lib()
{
module purge
module load gcc/${GCC_VERSION}
module load ${MPI_LIB}/${MPI_VERSION}_${GCC_SHORT}
module load hdf5/${HDF5_VERSION}_${GCC_SHORT}_${MPI_SHORT}
module load cmake/${CMAKE_VERSION}_${GCC_SHORT}
module load cmake/3.14.0_gcc640
gcc --version |head -n 1
mpirun --version |head -n 1
......@@ -53,6 +52,7 @@ if [[ ! -d $SRC_DIR ]]; then
fi
if [[ ! -d $BUILD_DIR ]]; then
export Qt5_DIR=/opt/qt59
mkdir $BUILD_DIR
cd $BUILD_DIR
cmake $SRC_DIR \
......@@ -67,7 +67,7 @@ if [[ ! -d $BUILD_DIR ]]; then
-DPYTHON_EXECUTABLE="/usr/bin/python3" \
-DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON \
-DPARAVIEW_USE_MPI=ON \
-DPARAVIEW_QT_VERSION=4 \
-DPARAVIEW_QT_VERSION=5 \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR || exit 1
fi
......
......@@ -11,13 +11,13 @@ proc ModulesHelp { } {
module-whatis "Loads {{ LIB_NAME }} {{ LIB_VERSION }} and its environment"
if [module-info mode load] {
module load gcc/{{ GCC_VERSION }}
# module load gcc/{{ GCC_VERSION }}
module load {{ MPI_LIB }}/{{ MPI_VERSION }}_{{ GCC_SHORT }}
module load hdf5/{{ HDF5_VERSION }}_{{ GCC_SHORT }}_{{ MPI_SHORT }}
}
prereq gcc/{{ GCC_VERSION }}
# prereq gcc/{{ GCC_VERSION }}
prereq openmpi/{{ MPI_VERSION }}_{{ GCC_SHORT }}
prereq hdf5/{{ HDF5_VERSION }}_{{ GCC_SHORT }}_{{ MPI_SHORT }}
......@@ -27,6 +27,9 @@ set prefix {{ INSTALL_DIR }}
prepend-path CMAKE_PREFIX_PATH $prefix
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path LD_LIBRARY_PATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}
prepend-path PYTHONPATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}/site-packages
prepend-path PYTHONPATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}/site-packages/vtk
prepend-path PYTHONPATH $prefix/lib/python3.5/site-packages
# For paraview < 5.6
#prepend-path LD_LIBRARY_PATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}
#prepend-path PYTHONPATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}/site-packages
#prepend-path PYTHONPATH $prefix/lib/paraview-{{ LIB_VERSION_SHORT }}/site-packages/vtk
......@@ -3,10 +3,11 @@
source ../common.sh
LIB_NAME="petsc"
LIB_VERSION=3.8.3 #3.7.6
GCC_VERSION=6.4.0
LIB_VERSION=3.12.1 # 3.9.3 #3.9.1 #3.8.3 #3.7.6
GCC_VERSION=8.3.0 #6.4.0
MPI_LIB=openmpi
MPI_VERSION=1.10.7 #2.1.1 #1.10.7
MPI_VERSION=4.0.2 #1.10.7 #2.1.1 #1.10.7
HDF5_VERSION=1.10.5
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION
......@@ -29,7 +30,7 @@ install_lib()
module purge
module load gcc/${GCC_VERSION}
module load ${MPI_LIB}/${MPI_VERSION}_${GCC_SHORT}
module load hdf5/1.10.1_${GCC_SHORT}_${MPI_SHORT}
module load hdf5/${HDF5_VERSION}_${GCC_SHORT}_${MPI_SHORT}
module list
gcc --version |head -n 1
......
......@@ -9,7 +9,7 @@ LIB_VERSION=2.4.0
PYTHON3_VERSION=3.0.0
PYTHON2_VERSION=2.7.0
FMILIB_VERSION=2.0.3
GCC_VERSION=6.4.0
GCC_VERSION=8.3.0 #6.4.0
#GMSH_VERSION=2.16.0
LIB_VERSION_MAJOR=`echo "${LIB_VERSION}" | sed 's/\([0-9]\)[.][0-9][.][0-9]/\1/g'`
......
......@@ -5,7 +5,7 @@ source ../common.sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LIB_NAME="pygmsh"
LIB_VERSION=4.0.3
LIB_VERSION=4.3.0
PYTHON3_VERSION=3.0.0
PYTHON2_VERSION=2.7.0
#GMSH_VERSION=2.16.0
......
......@@ -3,11 +3,11 @@
source ../common.sh
LIB_NAME="slepc"
LIB_VERSION=3.8.2 #3.7.4
PETSC_VERSION=3.8.3 #3.7.6
GCC_VERSION=6.4.0
LIB_VERSION=3.12.0 #3.9.2 #3.9.1 #3.8.2 #3.7.4
PETSC_VERSION=3.12.1 #3.9.3 #3.9.1 #3.8.3 #3.7.6
GCC_VERSION=8.3.0 #6.4.0
MPI_LIB=openmpi
MPI_VERSION=1.10.7 #2.1.1 #1.10.7
MPI_VERSION=4.0.2 #1.10.7 #2.1.1 #1.10.7
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_FULL=gcc-$GCC_VERSION
......
#!/bin/bash
source ../common.sh
LIB_NAME="ucx"
LIB_VERSION=1.6.1
GCC_VERSION=8.3.0
LIB_FULLNAME=${LIB_NAME}-${LIB_VERSION}
GCC_VERSION_SHORT="${GCC_VERSION//.}"
SUB_DIR=${LIB_NAME}/${LIB_VERSION}/gcc-${GCC_VERSION}
WORK_DIR=${BASE_WORK_DIR}/${SUB_DIR}
SRC_DIR=${WORK_DIR}/${LIB_FULLNAME}
ARCHIVE=${SRC_DIR}.tar.gz
URL="https://github.com/openucx/ucx/releases/download/v${LIB_VERSION}/ucx-${LIB_VERSION}.tar.gz"
BUILD_DIR=${WORK_DIR}/${LIB_FULLNAME}-build
INSTALL_DIR=${BASE_INSTALL_DIR}/${SUB_DIR}
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MODULE_DIR=${BASE_MODULE_DIR}/libs/${LIB_NAME}
MODULE_PATH=${MODULE_DIR}/${LIB_VERSION}_gcc${GCC_VERSION_SHORT}
module purge
module load gcc/${GCC_VERSION}
gcc --version | head -n 1
install_lib()
{
if [[ ! -f $ARCHIVE ]]; then
mkdir -p $WORK_DIR
wget $URL -O $ARCHIVE
fi
if [[ ! -d $SRC_DIR ]]; then
tar zxf $ARCHIVE --directory $WORK_DIR
fi
if [[ ! -d $BUILD_DIR ]]; then
mkdir $BUILD_DIR
cd $BUILD_DIR
${SRC_DIR}/contrib/configure-release \
--enable-mt \
--prefix=${INSTALL_DIR}
# ${SRC_DIR}/configure \
# --disable-logging --disable-debug --disable-assertions --disable-params-check --enable-mt \
# --prefix=${INSTALL_DIR}
fi
cd $BUILD_DIR
make -j || exit 1
make -j install || exit 1
}
install_module()
{
cd $SCRIPT_DIR
mkdir -p ${MODULE_DIR}
export LIB_NAME
export LIB_VERSION
export INSTALL_DIR
envtpl --keep-template -o $MODULE_PATH module.tmpl
}
if [[ $1 == "module" ]]
then
install_module
elif [[ $1 == "clean" ]]
then
clean_all
else
install_lib
install_module
fi
#%Module1.0#####################################################################
###
### {{ LIB_NAME }} {{ LIB_VERSION }} module
###
proc ModulesHelp { } {
global version prefix
puts stderr "\tlibs/{{ LIB_NAME }}/{{ LIB_VERSION }} - loads UCX {{ LIB_VERSION }} and its environment"
}
module-whatis "Loads UCX {{ LIB_VERSION }} and its environment"
# for Tcl script use only
set prefix {{ INSTALL_DIR }}
prepend-path CMAKE_PREFIX_PATH $prefix
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
setenv UCX_DIR $prefix
setenv UCX_WARN_UNUSED_ENV_VARS n
\ No newline at end of file