Commit c79ab795 authored by Cedric Jourdain's avatar Cedric Jourdain
Browse files

Add script part for davide

parent 34f69a34
......@@ -6,6 +6,7 @@ echo " - marenostrum "
echo " - marconi-knl "
echo " - daint-gpu "
echo " - daint-mc "
echo " - davide "
read machine
source ./env/env_${machine}
......@@ -55,16 +56,18 @@ Install(){
rm -rf SPECFEM3D_TestCaseB
fi
cd $install_dir/specfem3d_globe
if [ $machine = "daint-gpu" ]; then
if [ $machine = "daint-gpu" ] || [ $machine = "davide" ]; then
echo "Configure for CPU+GPU system"
### replace `use mpi` if needed ###
#cd utils
#perl replace_use_mpi_with_include_mpif_dot_h.pl
#cd ..
sed -i s/"GPU_MODE = .false."/"GPU_MODE = .true."/g $install_dir/specfem3d_globe/DATA/Par_file
export MPI_INC=$MPICH_DIR/include
export CUDA_LIB="$CUDATOOLKIT_HOME/lib64"
export CUDA_INC="$CUDATOOLKIT_HOME/include"
if [ $machine = "daint-gpu" ];then
export MPI_INC=$MPICH_DIR/include
export CUDA_LIB="$CUDATOOLKIT_HOME/lib64"
export CUDA_INC="$CUDATOOLKIT_HOME/include"
fi
./configure --build=ppc64 --with-cuda=cuda5
else
echo "Configure for CPU only system"
......@@ -91,12 +94,12 @@ Clean(){
Deploy(){
echo "install_dir ="$install_dir
if [ $machine = "occigen" ] || [ $machine = "marenostrum" ] || [ $machine = "marconi-knl" ] || [ $machine = "daint-mc" ] || [ $machine = "daint-gpu" ];then
if [ $machine = "occigen" ] || [ $machine = "marenostrum" ] || [ $machine = "marconi-knl" ] || [ $machine = "daint-mc" ] || [ $machine = "daint-gpu" ] || [ $machine = "davide" ];then
echo "==> Install on $machine :"
#Clean
mkdir -p $install_dir
export ueabs_dir=`pwd`
Untar
#Untar
Install
else
echo "Wrong machine !"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment