Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/hera #6

Merged
merged 5 commits into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove tar.gz after download
  • Loading branch information
aerorahul committed Aug 18, 2020
commit 21cf099551006cebc7eac3b1d6b6a3ea686bedbe
4 changes: 2 additions & 2 deletions config/config_hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export NTHREADS=8
export MAKE_CHECK=N
export MAKE_VERBOSE=N
export MAKE_CLEAN=N
export DOWNLOAD_ONLY=F
export DOWNLOAD_ONLY=Y
export STACK_EXIT_ON_FAIL=Y
export WGET="wget -nv"

# Load these basic modules for Hera
module load cmake/3.16.1
#module load cmake/3.16.1
12 changes: 6 additions & 6 deletions libs/build_nccmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ version=${1:-${STACK_nccmp_version}}

software=$name-$version

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

url="https://gitlab.com/remikz/nccmp/-/archive/$version/${software}.tar.gz"
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz && rm -f $software.tar.gz )
[[ ${DOWNLOAD_ONLY} =~ [yYtT] ]] && exit 0

# Hyphenated version used for install prefix
compiler=$(echo $HPC_COMPILER | sed 's/\//-/g')
mpi=$(echo $HPC_MPI | sed 's/\//-/g')
Expand Down Expand Up @@ -56,16 +62,10 @@ fi
LDFLAGS5="-L$NETCDF_ROOT/lib -lnetcdf"
export LDFLAGS="$LDFLAGS1 $LDFLAGS2 $LDFLAGS3 $LDFLAGS4 $LDFLAGS5"

url="https://gitlab.com/remikz/nccmp/-/archive/$version/${software}.tar.gz"

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

# Enable header pad comparison, if netcdf-c src directory exists!
[[ -d "netcdf-c-$NETCDF_VERSION" ]] && netcdf_src="$PWD/netcdf-c-$NETCDF_VERSION"
[[ -d "netcdf-c-$NETCDF_VERSION" ]] && extra_confs="--with-netcdf=$netcdf_src"

[[ -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
mkdir -p build && cd build
Expand Down
2 changes: 1 addition & 1 deletion libs/build_szip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software=$name-$version
url=https://support.hdfgroup.org/ftp/lib-external/szip/$version/src/$software.tar.gz
[[ -d $software ]] || ( $WGET $url; tar -xf $software.tar.gz )
[[ -d $software ]] || ( $WGET $url; tar -xf $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 Down
2 changes: 1 addition & 1 deletion libs/build_udunits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cd ${HPC_STACK_ROOT}/${PKGDIR:-"pkg"}

software=$name-$version
url=ftp://ftp.unidata.ucar.edu/pub/udunits/$software.tar.gz
[[ -d $software ]] || ( $WGET $url; tar xvf $software.tar.gz )
[[ -d $software ]] || ( $WGET $url; tar xvf $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 Down