diff --git a/marchenko/demo/WS15/README.1 b/marchenko/demo/WS15/README.1 new file mode 100644 index 0000000000000000000000000000000000000000..8894f24204a4f342cf0621d5e2c3da913b5a30a8 --- /dev/null +++ b/marchenko/demo/WS15/README.1 @@ -0,0 +1,45 @@ + +*1* Source the setup.sh script that you can find on + +source /home/users/jan/WS15/setup.sh + +The setup.sh script completes the following tasks: + +-a-Set PATH to find Seismic Unix and Marchenko code +export CWPROOT=/home/users/jan/SeisUnix/ +export PATH=.:$CWPROOT/bin:/lus/scratch/$USER/OpenSource/bin:$PATH: + +-b- Create working directory +/lus/scratch/$USER + +-c- set up compilation environment with the Intel compiler + +-d- Get the Marchenko software (and other utilities modeling code)) +git clone https://github.com/JanThorbecke/OpenSource.git + + +*2* after the set-up the code can be compiled + +cd OpenSource +cp Make_include_swan Make_include +make clean +make + +After succesfull complication the code can be used running the exercises and demo's + +*3* Running jobs + +To run example jobs must be submitted to the Workload Manager PBSpro. +An example script can be found on: + +/home/users/jan/WS15/job.pbs + +in job.pbs leave the number of nodes set to 1, the code is not MPI parallel and cannot use more than 1 node. The number of OMP_NUM_THREADS can be changed and is currently set to 40. +Add the ...scr command as the last line in the aprun command line and submit the job to the queue with 'qsub job.pbs' + +*4* Usefull job monitor commands specific for Cray + +apstat : status of applications running +xtnodestat : placement of application on system +xtprocadmin -A : details of installed nodes + diff --git a/marchenko/demo/WS15/README.2 b/marchenko/demo/WS15/README.2 new file mode 100644 index 0000000000000000000000000000000000000000..44bf68c72db21b8bc98c1b13ec84965a331a6089 --- /dev/null +++ b/marchenko/demo/WS15/README.2 @@ -0,0 +1,9 @@ + +Marchenko demo/twoD: reproduce the figures from the paper, but woth a 2D model. + +cd /lus/scratch/$USER/OpenSource/marchenko/demo/twoD + +cp ~jan/WS15/job.pbs . +# Copy pre-computed shots +cp -rp /lus/scratch/jan/OpenSource/marchenko/demo/twoD/shots . + diff --git a/marchenko/demo/WS15/job.pbs b/marchenko/demo/WS15/job.pbs new file mode 100755 index 0000000000000000000000000000000000000000..c9bff77dcecb9d41f67135581fc9cf9b109acc16 --- /dev/null +++ b/marchenko/demo/WS15/job.pbs @@ -0,0 +1,24 @@ +#!/bin/bash +#PBS -N Marchenko +#PBS -j oe +#PBS -l place=scatter,select=1 +#PBS -S /bin/bash +#PBS -V +#PBS -q bw44-sm +# PBS -q sk40-sm +#PBS -l walltime=00:10:00 + +set -x +cd $PBS_O_WORKDIR +ulimit -s unlimited + +export OMP_NUM_THREADS=40 + +starttime=`date +%s%N` + +aprun -n1 -d $OMP_NUM_THREADS + +endtime=`date +%s%N` +runtime=$(echo "scale=9; 1.0*10^(-9)*(${endtime}-${starttime})" | bc -l) +echo "Runtime = $runtime seconds" + diff --git a/marchenko/demo/WS15/setup.sh b/marchenko/demo/WS15/setup.sh new file mode 100755 index 0000000000000000000000000000000000000000..40c56979d607430257b6d88c8e98b520551e6c94 --- /dev/null +++ b/marchenko/demo/WS15/setup.sh @@ -0,0 +1,12 @@ + +export CWPROOT=/home/users/jan/SeisUnix/ +export PATH=.:$CWPROOT/bin:/lus/scratch/$USER/OpenSource/bin:$PATH: + +module swap PrgEnv-cray PrgEnv-intel +module list + +mkdir -p /lus/scratch/$USER + +cd /lus/scratch/$USER +#git clone https://github.com/JanThorbecke/OpenSource.git +