Skip to content
Snippets Groups Projects
Commit c758bf1f authored by kyle.c.klenk@gmail.com's avatar kyle.c.klenk@gmail.com
Browse files

added files for tagging summa-actors for ScalAH22

parent f39513a8
No related branches found
Tags ScalAH22-Submission
No related merge requests found
#!/bin/bash
if test -f "summa_actors.sif"; then
echo "Conatiner exists"
else
sudo apptainer build summa_actors.sif summa_actors.def
fi
#!/bin/bash
cd /Summa-Actors/build
make -f /Summa-Actors/build/makefile-container all
\ No newline at end of file
#!/bin/bash
#### load modules if using Compute Canada or Copernicus ####
module load gcc/9.3.0
module load netcdf-fortran
module load openblas
module load caf
#### Specifiy Master Directory, parent of build directory
export ROOT_DIR=/globalhome/kck540/HPC/SummaProjects/Summa-Actors
#### Specifiy Compilers ####
export FC=gfortran
export CC=g++
#### Includes and Libraries ####
export INCLUDES="-I$EBROOTNETCDFMINFORTRAN/include"
export LIBRARIES="-L$EBROOTNETCDFMINFORTRAN/lib64\
-L$EBROOTOPENBLAS/lib\
-lnetcdff -lopenblas"
# INCLUDES FOR Actors Component
export ACTORS_INCLUDES="-I$EBROOTCAF/include\
-I$EBROOTNETCDFMINFORTRAN/include"
export ACTORS_LIBRARIES="-L$EBROOTCAF/lib\
-L$EBROOTCAF/lib64\
-L$EBROOTNETCDFMINFORTRAN/lib64\
-L$EBROOTOPENBLAS/lib\
-L$ROOT_DIR/bin\
-lcaf_core -lcaf_io -lsumma -lopenblas -lnetcdff"
#### Compile with the Makefile ####
make -f ${ROOT_DIR}/build/makefile all
export LD_LIBRARY_PATH=${ROOT_DIR}/bin
\ No newline at end of file
#!/bin/bash
module load singularity
singularity shell --bind /globalhome/kck540/HPC/SummaProjects/Summa-Actors:/Summa-Actors \
--bind /scratch/gwf/gwf_cmt/kck540/SummaOutput/SummaActors:/output \
--bind /project/gwf/gwf_cmt/kck540/domain_NorthAmerica/settings/SUMMA:/SUMMA \
--bind /project/gwf/gwf_cmt/kck540/domain_NorthAmerica/forcing/SummaChunkedData/:/forcing \
summa-actors.sif
#!/bin/bash
#############
## File in the path that SUMMA-Actors top level directory is located in
###############
SUMMA_ACTORS=/home/kklenk/Summa-Projects/Summa-Actors # top level directory
apptainer exec --bind $SUMMA_ACTORS:/Summa-Actors summa_actors.sif /Summa-Actors/build/build_summa_actors_container.sh
\ No newline at end of file
#!/bin/bash
cd /Summa-Actors/build
make -f /Summa-Actors/build/makefile-container all
# make -f /Summa-Actors/build/makefile-container all
export LD_LIBRARY_PATH=/Summa-Actors/bin
cd /Summa-Actors/bin
./summaMain -c /gladwell/kck540/Summa-Distributed/herschel/
\ No newline at end of file
Bootstrap: docker
From: ubuntu:20.04
%post
apt-get update
# need to install locales and set to en_CA.UTF-8
# this causes issues if not done
apt-get install locales
locale-gen en_CA.UTF-8
apt-get upgrade -y && \
DEBIAN_FRONTEND="noninteractive" apt-get install -y software-properties-common \
libnetcdf-dev \
libnetcdff-dev \
liblapack-dev \
libopenblas-dev \
cmake \
g++ \
git \
libssl-dev \
make \
gfortran \
python3-pip \
gdb &&\
apt-get autoclean
pip3 install xarray
pip3 install netcdf4
cd /opt
git clone https://github.com/actor-framework/actor-framework.git
cd actor-framework
./configure
cd build
make
make test
make install
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