-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslurm-array.tex
50 lines (30 loc) · 1.2 KB
/
slurm-array.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Created 2015-03-30 Mon 15:10
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{hyperref}
\title{`\#SBATCH --job-name=RUN$_{\mathrm{CREATE}}$\_{}CRIS\_{}RTP}
\author{Steven Buczkowski}
\date{30 March 2015}
\begin{document}
\maketitle
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
MATLAB=/usr/cluster/matlab/2014b/bin/matlab
MATOPT=' -nojvm -nodisplay -nosplash'
RTP$_{\mathrm{PROD2\}}$=\~{}/git/rtp$_{\mathrm{prod2\}}$
srun \$MATLAB \$MATOPTS -r ``addpath(genpath('\$RTP$_{\mathrm{PROD2\}}$')); run$_{\mathrm{cris}}$\_{}batch; exit''
function run$_{\mathrm{cris}}$\_{}batch()
addpath(genpath('/home/sbuczko1/git/rtp$_{\mathrm{prod2\}}$'));
slurmindex = str2num(getenv('SLURM$_{\mathrm{ARRAY}}$\_{}TASK\_{}ID'));
[status, infile] = system(sprintf('sed -n ``\%dp'' \~{}/cris-files-process.txt | \ldots{}
tr -d ``\n''', slurmindex));
outpath='/asl/data/rtp$_{\mathrm{cris}}$\_{}slb';
[path, name, ext] = fileparts(infile);
outfile = fullfile(outpath, [strrep(name, `SDR', `rtp') `.rtp']);
create$_{\mathrm{cris}}$\_{}ccast\_{}hires\_{}rtp(infile, outfile)
end
\end{document}