From 290aadaf0f9655bc17f4f52bbe3ac094f86b2f69 Mon Sep 17 00:00:00 2001 From: Neda Darbeheshti <neda.darbeheshti@aei.mpg.de> Date: Mon, 19 Nov 2018 14:57:06 +0100 Subject: [PATCH] luis folder started --- luis/MyBatchHLSST20h.sh | 24 ++++++++++++++++++++++++ luis/hello.m | 4 ++++ luis/luis_command.txt | 12 ++++++++++++ luis/matlab-job-serial.sh | 18 ++++++++++++++++++ 4 files changed, 58 insertions(+) create mode 100644 luis/MyBatchHLSST20h.sh create mode 100644 luis/hello.m create mode 100644 luis/luis_command.txt create mode 100644 luis/matlab-job-serial.sh diff --git a/luis/MyBatchHLSST20h.sh b/luis/MyBatchHLSST20h.sh new file mode 100644 index 0000000..bb464b4 --- /dev/null +++ b/luis/MyBatchHLSST20h.sh @@ -0,0 +1,24 @@ +#!/bin/bash -login +#PBS -l nodes=1:ppn=6 +#PBS -l walltime=12:00:00 +#PBS -l mem=16GB +#PBS -M weigelt@ife.uni-hannover.de +#PBS -m abe +#PBS -o /home/nhglmatt/Matlab/HLSST/${PBS_JOBNAME}_${PBS_JOBID}.txt +#PBS -k oe +#PBS -j oe + +# Call the calculation +for midx in `seq 1 1 12` +do + echo "Starting processing $name for year $year and month $midx ..." + # load Matlab module + module load MATLAB/2017a + # start Matlab + matlab –nosplash –nodesktop –nodisplay -r "cd('/home/nhglmatt/Matlab/HLSST/');myadd2path;hlSST('$name',[$year $midx $year $midx],true,'$TMPDIR')" + wait $! + # release Matlab module + module del MATLAB/2017a +done + + diff --git a/luis/hello.m b/luis/hello.m new file mode 100644 index 0000000..dac544c --- /dev/null +++ b/luis/hello.m @@ -0,0 +1,4 @@ +% Example MATLAB script for Hello World +disp ’Hello World ’ +exit +% end of example file diff --git a/luis/luis_command.txt b/luis/luis_command.txt new file mode 100644 index 0000000..ec7af0c --- /dev/null +++ b/luis/luis_command.txt @@ -0,0 +1,12 @@ +login + +ssh nhbfneda@login.cluster.uni-hannover.de + +scp /home/neda/Documents/code/gracetools-master/gfr_parallel.m nhbfneda@login.cluster.uni-hannover.de:/home/nhbfneda/ + +-r for directory + +for mac +ssh aeissh +ssh luis + diff --git a/luis/matlab-job-serial.sh b/luis/matlab-job-serial.sh new file mode 100644 index 0000000..87f9283 --- /dev/null +++ b/luis/matlab-job-serial.sh @@ -0,0 +1,18 @@ +#!/bin/bash +#PBS -N matlab_serial +#PBS -M my@email.address +#PBS -m bae +#PBS -j oe +#PBS -l nodes =1:ppn=1 +#PBS -l walltime =00:10:00 +#PBS -l mem=4gb +# Compute node the job ran on +echo "Job ran on:" $HOSTNAME +# Load modules +module load MATLAB /2017a +# Change to work dir: +cd $PBS_O_WORKDIR +# Log file name +LOGFILE=$(echo $PBS_JOBID | cut -d"." -f1).log +# The program to run +matlab -nodesktop -nosplash < hello.m > $LOGFILE 2>&1 -- GitLab