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 " ...@@ -6,6 +6,7 @@ echo " - marenostrum "
echo " - marconi-knl " echo " - marconi-knl "
echo " - daint-gpu " echo " - daint-gpu "
echo " - daint-mc " echo " - daint-mc "
echo " - davide "
read machine read machine
source ./env/env_${machine} source ./env/env_${machine}
...@@ -55,16 +56,18 @@ Install(){ ...@@ -55,16 +56,18 @@ Install(){
rm -rf SPECFEM3D_TestCaseB rm -rf SPECFEM3D_TestCaseB
fi fi
cd $install_dir/specfem3d_globe cd $install_dir/specfem3d_globe
if [ $machine = "daint-gpu" ]; then if [ $machine = "daint-gpu" ] || [ $machine = "davide" ]; then
echo "Configure for CPU+GPU system" echo "Configure for CPU+GPU system"
### replace `use mpi` if needed ### ### replace `use mpi` if needed ###
#cd utils #cd utils
#perl replace_use_mpi_with_include_mpif_dot_h.pl #perl replace_use_mpi_with_include_mpif_dot_h.pl
#cd .. #cd ..
sed -i s/"GPU_MODE = .false."/"GPU_MODE = .true."/g $install_dir/specfem3d_globe/DATA/Par_file sed -i s/"GPU_MODE = .false."/"GPU_MODE = .true."/g $install_dir/specfem3d_globe/DATA/Par_file
export MPI_INC=$MPICH_DIR/include if [ $machine = "daint-gpu" ];then
export CUDA_LIB="$CUDATOOLKIT_HOME/lib64" export MPI_INC=$MPICH_DIR/include
export CUDA_INC="$CUDATOOLKIT_HOME/include" export CUDA_LIB="$CUDATOOLKIT_HOME/lib64"
export CUDA_INC="$CUDATOOLKIT_HOME/include"
fi
./configure --build=ppc64 --with-cuda=cuda5 ./configure --build=ppc64 --with-cuda=cuda5
else else
echo "Configure for CPU only system" echo "Configure for CPU only system"
...@@ -91,12 +94,12 @@ Clean(){ ...@@ -91,12 +94,12 @@ Clean(){
Deploy(){ Deploy(){
echo "install_dir ="$install_dir 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 :" echo "==> Install on $machine :"
#Clean #Clean
mkdir -p $install_dir mkdir -p $install_dir
export ueabs_dir=`pwd` export ueabs_dir=`pwd`
Untar #Untar
Install Install
else else
echo "Wrong machine !" echo "Wrong machine !"
......
Markdown is supported
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