Skip to content

Commit

Permalink
add a dump of build info (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul authored Mar 26, 2021
1 parent 5cf7c0a commit 3459bcc
Show file tree
Hide file tree
Showing 39 changed files with 193 additions and 164 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ script.

* Compilers and MPI libraries
- [GNU/GCC](https://gcc.gnu.org/)
- Intel/IPS
- [Intel](https://intel.com)
- [OpenMPI](https://www.open-mpi.org/)
- [MPICH](https://www.mpich.org/)
- `hpc-` Meta-modules for all the above as well as Intel and IMPI
Expand All @@ -134,6 +134,7 @@ script.
- [Tau2]()
- [Boost](https://beta.boost.org/)
- [Eigen](http://eigen.tuxfamily.org/)
- [GSL-Lite](http://github.com/gsl-lite/gsl-lite)
- [JSON for C++](https://github.com/nlohmann/json/)
- [JSON Schema Validator for C++](https://github.com/pboettch/json-schema-validator)
- [pybind11](https://github.com/pybind/pybind11)
Expand Down Expand Up @@ -163,6 +164,7 @@ script.
- [NCEPLIBS-prod_util](https://github.com/noaa-emc/nceplibs-prod_util.git)
- [NCEPLIBS-grib_util](https://github.com/noaa-emc/nceplibs-grib_util.git)
- [NCEPLIBS-ncio](https://github.com/noaa-emc/nceplibs-ncio.git)
- [NCEPLIBS-wrf_io](https://github.com/noaa-emc/nceplibs-wrf_io.git)
- [EMC_crtm](https://github.com/noaa-emc/EMC_crtm.git)
- [EMC_post](https://github.com/noaa-emc/EMC_post.git)

Expand Down
4 changes: 4 additions & 0 deletions build_stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ else
set_pkg_root
fi

# ==============================================================================
# Echo build information
build_info

# ==============================================================================
#----------------------
# Compiler and MPI
Expand Down
7 changes: 4 additions & 3 deletions libs/build_atlas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export FFLAGS="${STACK_FFLAGS:-} ${STACK_atlas_FFLAGS:-} -fPIC"

software=$name-$repo-$version
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}
[[ -d $software ]] || git clone https://github.com/$repo/$name.git $software
URL="https://github.com/$repo/$name.git"
[[ -d $software ]] || git clone $URL $software
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
git fetch --tags
git checkout $version
Expand All @@ -55,5 +56,5 @@ VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}
VERBOSE=$MAKE_VERBOSE $SUDO make install

# generate modulefile from template
$MODULES && update_modules mpi $name $repo-$version \
|| echo $name $repo-$version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules mpi $name $repo-$version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
12 changes: 6 additions & 6 deletions libs/build_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ level=${2:-${STACK_boost_level:-"full"}}

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}
software=$name\_$(echo $version | sed 's/\./_/g')
url="https://dl.bintray.com/boostorg/release/$version/source/$software.tar.gz"
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz )
URL="https://dl.bintray.com/boostorg/release/$version/source/$software.tar.gz"
[[ -d $software ]] || ( $WGET $URL; tar -xf $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )

Expand All @@ -24,8 +24,8 @@ if [[ $level = "headers-only" ]]; then
$SUDO cp -R boost $prefix/include

# generate modulefile from template
$MODULES && update_modules core "boost-headers" $version \
|| echo "boost-headers" $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules core "boost-headers" $version
echo $name-headers $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log

exit 0
fi
Expand Down Expand Up @@ -97,5 +97,5 @@ rm -f $HOME/user-config.jam

# generate modulefile from template
[[ -z $mpi ]] && modpath=compiler || modpath=mpi
$MODULES && update_modules $modpath $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules $modpath $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
14 changes: 7 additions & 7 deletions libs/build_cdo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

case $version in
1.9.9 )
url="https://code.mpimet.mpg.de/attachments/download/23323/cdo-1.9.9.tar.gz"
URL="https://code.mpimet.mpg.de/attachments/download/23323/cdo-1.9.9.tar.gz"
;;
1.9.8 )
url="https://code.mpimet.mpg.de/attachments/download/20826/cdo-1.9.8.tar.gz"
URL="https://code.mpimet.mpg.de/attachments/download/20826/cdo-1.9.8.tar.gz"
;;
1.9.7.1 )
url="https://code.mpimet.mpg.de/attachments/download/20124/cdo-1.9.7.1.tar.gz"
URL="https://code.mpimet.mpg.de/attachments/download/20124/cdo-1.9.7.1.tar.gz"
;;
1.9.6 )
url="https://code.mpimet.mpg.de/attachments/download/19299/cdo-1.9.6.tar.gz"
URL="https://code.mpimet.mpg.de/attachments/download/19299/cdo-1.9.6.tar.gz"
;;
* )
echo "Try using CDO version 1.9.6 and above, ABORT!"
Expand All @@ -85,7 +85,7 @@ case $version in
esac

software=$name-$version
[[ -d $software ]] || ( $WGET $url; tar -xzf $software.tar.gz && rm -f $software.tar.gz )
[[ -d $software ]] || ( $WGET $URL; tar -xzf $software.tar.gz && rm -f $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
Expand All @@ -101,5 +101,5 @@ $SUDO make install

# generate modulefile from template
[[ -z $mpi ]] && modpath=compiler || modpath=mpi
$MODULES && update_modules $modpath $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules $modpath $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_cgal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ fi
cd $HPC_STACK_ROOT/${PKGDIR:-"pkg"}

software="CGAL-"$version
url="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$version/$software-library.tar.xz"
[[ -d $software ]] || ( $WGET $url; tar -xf $software-library.tar.xz )
URL="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$version/$software-library.tar.xz"
[[ -d $software ]] || ( $WGET $URL; tar -xf $software-library.tar.xz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )

cmake . -DCMAKE_INSTALL_PREFIX=$prefix
$SUDO make install

# generate modulefile from template
$MODULES && update_modules core $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules core $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ fi

software=$name-$version
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}
url="https://cmake.org/files/v${version%.*}/$software.tar.gz"
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz )
URL="https://cmake.org/files/v${version%.*}/$software.tar.gz"
[[ -d $software ]] || ( $WGET $URL; tar -xf $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )

Expand All @@ -39,5 +39,5 @@ $SUDO make -j${NTHREADS:-4}
$SUDO make install

# generate modulefile from template
$MODULES && update_modules core $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules core $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
7 changes: 4 additions & 3 deletions libs/build_ecbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ fi

software=$name-$repo-$version
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}
[[ -d $software ]] || git clone https://github.com/$repo/$name.git $software
URL="https://github.com/$repo/$name.git"
[[ -d $software ]] || git clone $URL $software
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
git fetch --tags
git checkout $version
Expand All @@ -37,5 +38,5 @@ VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}
VERBOSE=$MAKE_VERBOSE $SUDO make install

# generate modulefile from template
$MODULES && update_modules core $name $repo-$version \
|| echo $name $repo-$version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules core $name $repo-$version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
7 changes: 4 additions & 3 deletions libs/build_eckit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export CXXFLAGS="${STACK_CXXFLAGS:-} ${STACK_eckit_CXXFLAGS:-} -fPIC"

software=$name-$repo-$version
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}
[[ -d $software ]] || git clone https://github.com/$repo/$name.git $software
URL="https://github.com/$repo/$name.git"
[[ -d $software ]] || git clone $URL $software
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
git fetch --tags
git checkout $version
Expand All @@ -55,5 +56,5 @@ VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}
VERBOSE=$MAKE_VERBOSE $SUDO make install

# generate modulefile from template
$MODULES && update_modules mpi $name $repo-$version \
|| echo $name $repo-$version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules mpi $name $repo-$version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_eigen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ fi

cd $HPC_STACK_ROOT/${PKGDIR:-"pkg"}

gitURL="https://gitlab.com/libeigen/eigen.git"
URL="https://gitlab.com/libeigen/eigen.git"

software=$name-$version
[[ -d $software ]] || ( git clone -b $version $gitURL $software )
[[ -d $software ]] || ( git clone -b $version $URL $software )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
Expand All @@ -38,5 +38,5 @@ cmake .. -DCMAKE_INSTALL_PREFIX=$prefix
$SUDO make install

# generate modulefile from template
$MODULES && update_modules core $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules core $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_esmf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ export CFLAGS="${STACK_CFLAGS:-} ${STACK_esmf_CFLAGS:-} -fPIC"
export CXXFLAGS="${STACK_CXXFLAGS:-} ${STACK_esmf_CXXFLAGS:-} -fPIC"
export FCFLAGS="$FFLAGS"

gitURL="https://github.com/esmf-org/esmf"
URL="https://github.com/esmf-org/esmf"

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software="ESMF_$version"
# ESMF does not support out of source builds; clean out the clone
[[ -d $software ]] && ( echo "$software exists, cleaning ..."; rm -rf $software )
[[ -d $software ]] || ( git clone -b $software $gitURL $software )
[[ -d $software ]] || ( git clone -b $software $URL $software )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
export ESMF_DIR=$PWD
Expand Down Expand Up @@ -168,5 +168,5 @@ $SUDO make install

# generate modulefile from template
[[ -z $mpi ]] && modpath=compiler || modpath=mpi
$MODULES && update_modules $modpath $name $version_install \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules $modpath $name $version_install
echo $name $version_install $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
7 changes: 4 additions & 3 deletions libs/build_fckit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export FFLAGS="${STACK_FFLAGS:-} ${STACK_fckit_FFLAGS:-} -fPIC"

software=$name-$repo-$version
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}
[[ -d $software ]] || git clone https://github.com/$repo/$name.git $software
URL="https://github.com/$repo/$name.git"
[[ -d $software ]] || git clone $URL $software
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
git fetch --tags
git checkout $version
Expand All @@ -54,5 +55,5 @@ VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}
VERBOSE=$MAKE_VERBOSE $SUDO make install

# generate modulefile from template
$MODULES && update_modules mpi $name $repo-$version \
|| echo $name $repo-$version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules mpi $name $repo-$version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_fftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export CFLAGS="${STACK_CFLAGS:-} ${STACK_fftw_CFLAGS} -fPIC"

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

url="http://fftw.org/${software}.tar.gz"
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz )
URL="http://fftw.org/${software}.tar.gz"
[[ -d $software ]] || ( $WGET $URL; tar -xf $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
Expand All @@ -60,5 +60,5 @@ $SUDO make install

# generate modulefile from template
[[ -z $mpi ]] && modpath=compiler || modpath=mpi
$MODULES && update_modules $modpath $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules $modpath $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
7 changes: 4 additions & 3 deletions libs/build_fms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export FCFLAGS="${FFLAGS}"

software=$name-$repo-$version
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}
[[ -d $software ]] || git clone https://github.com/$repo/$name.git $software
URL="https://github.com/$repo/$name.git"
[[ -d $software ]] || git clone $URL $software
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
git fetch --tags
git checkout $version
Expand All @@ -55,5 +56,5 @@ VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}
VERBOSE=$MAKE_VERBOSE $SUDO make install

# generate modulefile from template
$MODULES && update_modules mpi $name $version \
|| echo $name $repo-$version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules mpi $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ software="gcc-$version"

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

url="https://mirrors.tripadvisor.com/gnu/gcc/$software/$software.tar.gz"
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz; rm -f $software.tar.gz )
URL="https://mirrors.tripadvisor.com/gnu/gcc/$software/$software.tar.gz"
[[ -d $software ]] || ( $WGET $URL; tar -xf $software.tar.gz; rm -f $software.tar.gz )
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
contrib/download_prerequisites
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
Expand Down Expand Up @@ -39,5 +39,5 @@ VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}
$SUDO make install-strip

# generate modulefile from template
$MODULES && update_modules core $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules core $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
7 changes: 4 additions & 3 deletions libs/build_gptl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export CXX=$MPI_CXX
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software=GPTL
[[ -d $software ]] || git clone -b v$version https://github.com/jmrosinski/$software
URL="https://github.com/jmrosinski/$software"
[[ -d $software ]] || git clone -b v$version $URL
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
autoreconf -i
Expand All @@ -46,5 +47,5 @@ VERBOSE=$MAKE_VERBOSE make
VERBOSE=$MAKE_VERBOSE $SUDO make install

# generate modulefile from template
$MODULES && update_modules mpi $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules mpi $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_gsl_lite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ fi

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

gitURL="https://github.com/$name/$name"
URL="https://github.com/$name/$name"
software=$name-$version

[[ -d $software ]] || ( git clone -b "v$version" $gitURL $software )
[[ -d $software ]] || ( git clone -b "v$version" $URL $software )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )

Expand All @@ -48,5 +48,5 @@ VERBOSE=$MAKE_VERBOSE make -j$NTHREADS
VERBOSE=$MAKE_VERBOSE $SUDO make install

# generate modulefile from template
$MODULES && update_modules core $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules core $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
8 changes: 4 additions & 4 deletions libs/build_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ export CFLAGS="${STACK_CFLAGS:-} ${STACK_hdf5_CFLAGS:-} -fPIC -w"
export CXXFLAGS="${STACK_CXXFLAGS:-} ${STACK_hdf5_CXXFLAGS:-} -fPIC -w"
export FCFLAGS="$FFLAGS"

gitURL="https://github.com/HDFGroup/hdf5.git"
URL="https://github.com/HDFGroup/hdf5.git"

cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software=$name-$(echo $version | sed 's/\./_/g')
[[ -d $software ]] || ( git clone -b $software $gitURL $software )
[[ -d $software ]] || ( git clone -b $software $URL $software )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
[[ -d build ]] && rm -rf build
Expand All @@ -77,5 +77,5 @@ VERBOSE=$MAKE_VERBOSE make -j${NTHREADS:-4}

# generate modulefile from template
[[ -z $mpi ]] && modpath=compiler || modpath=mpi
$MODULES && update_modules $modpath $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules $modpath $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
10 changes: 5 additions & 5 deletions libs/build_jasper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export CFLAGS="${STACK_CFLAGS:-} ${STACK_jasper_CFLAGS:-} -fPIC"
cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software=$name-$version
#gitURL="https://github.com/mdadams/jasper"
gitURL="https://github.com/jasper-software/jasper"
[[ -d $software ]] || ( git clone -b "version-$version" $gitURL $software )
#URL="https://github.com/mdadams/jasper"
URL="https://github.com/jasper-software/jasper"
[[ -d $software ]] || ( git clone -b "version-$version" $URL $software )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0
[[ -d $software ]] && cd $software || ( echo "$software does not exist, ABORT!"; exit 1 )
sourceDir=$PWD
Expand Down Expand Up @@ -78,5 +78,5 @@ make -j${NTHREADS:-4}
$SUDO make install

# generate modulefile from template
$MODULES && update_modules compiler $name $version \
|| echo $name $version >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
$MODULES && update_modules compiler $name $version
echo $name $version $URL >> ${HPC_STACK_ROOT}/hpc-stack-contents.log
Loading

0 comments on commit 3459bcc

Please sign in to comment.