Commit 13a8e641 authored by GIORGIO AMATI's avatar GIORGIO AMATI

Delete 04-submit

parent f6f7430f
#!/bin/bash
#SBATCH --partition=knl_usr_prod
#SBATCH --time=06:00:00
#SBATCH --account=CHEPR_devel_0
set -eu
current_setup=$SLURM_SUBMIT_DIR
pushd $current_setup
. 00-settings
local_setup=$rundir/$(basename $current_setup)
local_setup=$current_setup
#for host in $(scontrol show hostname $SLURM_JOB_NODELIST); do
# rsync -azPL --exclude 'DATABASES_MPI/proc*' --exclude 'OUTPUT_FILES/*.ascii' --exclude 'slurm-*' ./* $host:/$local_setup/
#done
pushd $local_setup
export OMP_NUM_THREADS=$threads_per_rank
export SLURM_TASKS_PER_NODE="$ranks_per_node(x$nodes)"
srun --cpu_bind=core ./bin/xmeshfem3D
srun --cpu_bind=core ./bin/xspecfem3D
popd
#for host in $(scontrol show hostname $SLURM_JOB_NODELIST); do
# rsync -azPK --remove-source-files $host:$local_setup/* ./
# rsync -azPK --remove-source-files --exclude 'DATABASES_MPI/proc*' $host:$local_setup/* ./
# ssh $host "rm -rf $local_setup"
#done
popd
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