Skip to content
Snippets Groups Projects
Commit 167c29e8 authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

added helped script to build both yaco and its set of dependencies on levante

parent c7d8398c
No related branches found
No related tags found
1 merge request!46Build process for multiple compilers across different machines
......@@ -12,7 +12,7 @@ REPO_TAG_METKIT="1.11.0"
REPO_TAG_FDB="5.11.94"
REPO_TAG_FYAML="v0.9"
REPO_TAG_CFITSIO="4.1.0"
REPO_TAG_HEALPIX="trunk"
REPO_TAG_HEALPIX="trunk" # because its only a mirror. version control is done else where.
REPO_TAG_YAC="release-3.4.0_p2"
REPO_TAG_YAXT="release-0.11.3"
......@@ -21,6 +21,11 @@ REPO_TAG_YAXT="release-0.11.3"
# TODO: if this is acceptable, may be extend it to other submodules of this repo
ROOT_DIR=$(pwd)
WORK_DIR_NAME="deploy_yaco_$(date -I)"
YACO_WORK_DIR=${ROOT_DIR}/$WORK_DIR_NAME
GIT_REPOS=$YACO_WORK_DIR/external
INSTALL_FOLDER=$YACO_WORK_DIR/install
THREADS=8
function print_versions {
......@@ -54,54 +59,6 @@ function usage {
echo " defaults to building all depedencies"
}
function build_dependency {
library_name=$1
if [[ "${library_name,,}" == "all" ]]; then
build_all
else
install_${library_name}
fi
}
VALID_ARGS=$(getopt -o j:h --long versions,help,work_dir,dependency: -- "$@") || exit 1
eval set -- "$VALID_ARGS"
while true; do
case "$1" in
-j)
THREADS=$2
shift 2
;;
--dependency)
build_dependency "$2"
shift 2
exit
;;
--versions)
print_versions
shift
exit
;;
--work_dir)
WORK_DIR_NAME=$2
shift 2
;;
? | -h | --help)
usage
exit
;;
--) shift
break
;;
esac
done
shift "$(( OPTIND - 1 ))"
YACO_WORK_DIR=${ROOT_DIR}/$WORK_DIR_NAME
GIT_REPOS=$YACO_WORK_DIR/external
INSTALL_FOLDER=$YACO_WORK_DIR/install
function debug {
echo "$1"
}
......@@ -310,7 +267,7 @@ function make_yaco() {
}
function build_all {
function build_all {
debug "========================"
debug "---- handling aec"
install_aec
......@@ -358,4 +315,51 @@ function main {
build_all
}
function build_dependency {
library_name=$1
if [[ "${library_name,,}" == "all" ]]; then
build_all
else
install_${library_name}
fi
}
VALID_ARGS=$(getopt -o j:h --long versions,help,work_dir,dependency: -- "$@") || exit 1
eval set -- "$VALID_ARGS"
while true; do
case "$1" in
-j)
THREADS=$2
shift 2
;;
--dependency)
build_dependency "$2"
shift 2
exit
;;
--versions)
print_versions
shift
exit
;;
--work_dir)
WORK_DIR_NAME=$2
shift 2
;;
? | -h | --help)
usage
exit
;;
--) shift
break
;;
esac
done
shift "$(( OPTIND - 1 ))"
main
function echo_software_stack_levante {
echo module load openmpi/4.1.2-intel-2021.5.0
echo module load hdf5/1.12.1-intel-2021.5.0
echo module load netcdf-c/4.8.1-openmpi-4.1.2-intel-2021.5.0
echo module load netcdf-fortran/4.5.3-openmpi-4.1.2-intel-2021.5.0
echo spack load openblas@0.3.18%intel@2021.5.0
echo spack load /evf4hh6 #libaec 1.0.6 @ intel 2012.5.0
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment