Skip to content
Snippets Groups Projects
Commit 30b3806d authored by Cedric Jourdain's avatar Cedric Jourdain 🐵
Browse files

add Marconi100 conf in compile.sh

parent bd4b310b
No related merge requests found
...@@ -16,6 +16,8 @@ echo " - deepsdv " ...@@ -16,6 +16,8 @@ echo " - deepsdv "
echo " - hazelhen " echo " - hazelhen "
echo " - vega-gpu" echo " - vega-gpu"
echo " - vega-cpu" echo " - vega-cpu"
echo " - marconi100 "
read machine read machine
export NEX_XI=384 #384 #416 #352 #320 #288 #256 #224 #192 #160 #128 #96 #288 export NEX_XI=384 #384 #416 #352 #320 #288 #256 #224 #192 #160 #128 #96 #288
...@@ -102,6 +104,12 @@ Install(){ ...@@ -102,6 +104,12 @@ Install(){
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
sed -i s/"GPU_DEVICE = Tesla"/"GPU_DEVICE = *"/g $install_dir/specfem3d_globe/DATA/Par_file sed -i s/"GPU_DEVICE = Tesla"/"GPU_DEVICE = *"/g $install_dir/specfem3d_globe/DATA/Par_file
./configure --build=ppc64 --with-cuda=cuda8 ./configure --build=ppc64 --with-cuda=cuda8
elif [ $machine = "marconi100" ]; then
echo "Configure for Marconi100 GPU partion"
sed -i s/"GPU_MODE = .false."/"GPU_MODE = .true."/g $install_dir/specfem3d_globe/DATA/Par_file
sed -i s/"GPU_DEVICE = Tesla"/"GPU_DEVICE = *"/g $install_dir/specfem3d_globe/DATA/Par_file
./configure --build=ppc64 --with-cuda=cuda8
sed -i s/"O4"/"O3"/g Makefile #-O4 is not supported with option -qoffload
else else
echo "Configure for CPU only system" echo "Configure for CPU only system"
./configure --enable-openmp ./configure --enable-openmp
...@@ -146,7 +154,7 @@ Clean(){ ...@@ -146,7 +154,7 @@ Clean(){
Deploy(){ Deploy(){
echo "install_dir ="$install_dir echo "install_dir ="$install_dir
if [ $machine = "occigen" ] || [ $machine = "marenostrum" ] || [ $machine = "marconi-knl" ] || [ $machine = "daint-cpu-only" ] || [ $machine = "daint-gpu" ] || [ $machine = "davide" ] || [ $machine = "juwels" ] || [ $machine = "irene-skl" ] || [ $machine = "irene-knl" ] || [ $machine = "dibona" ] || [ $machine = "frioul" ] || [ $machine = "deepsdv" ] || [ $machine = "hazelhen" ] || [ $machine = "vega-cpu" ] || [ $machine = "vega-gpu" ];then if [ $machine = "occigen" ] || [ $machine = "marenostrum" ] || [ $machine = "marconi-knl" ] || [ $machine = "daint-cpu-only" ] || [ $machine = "daint-gpu" ] || [ $machine = "davide" ] || [ $machine = "juwels" ] || [ $machine = "irene-skl" ] || [ $machine = "irene-knl" ] || [ $machine = "dibona" ] || [ $machine = "frioul" ] || [ $machine = "deepsdv" ] || [ $machine = "hazelhen" ] || [ $machine = "vega-cpu" ] || [ $machine = "vega-gpu" ] || [ $machine = "marconi100" ];then
echo "==> Install on $machine :" echo "==> Install on $machine :"
mkdir -p $install_dir mkdir -p $install_dir
Clean Clean
......
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