-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstochastic_on_condor.html
148 lines (106 loc) · 7.08 KB
/
stochastic_on_condor.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="/theme/pygments/github.min.css">
<link rel="stylesheet" type="text/css" href="/theme/font-awesome/css/font-awesome.min.css">
<link href="/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Pat Meyers Atom">
<meta name="author" content="Pat Meyers" />
<meta name="description" content="Below is Philips magic script for running stochastic.m interactively on condor. #!/bin/bash if [ "$#" -ne 3 ]; then echo "Usage: paramsFile jobsFile jobNumber" exit 1 fi HOME=/home/stochastic export HOME MCRROOT="/ldcg/matlab_r2015a" STOCH_PATH=${HOME}/O3/stochastic-pipeline/stochastic export STOCH_PATH matlab -nodesktop -nojvm -nosplash -noFigureWindows -nosoftwareopengl -singleCompThread \ -r "try …" />
<meta name="keywords" content="">
<meta property="og:site_name" content="Pat Meyers"/>
<meta property="og:title" content="Interactive matlab on condor"/>
<meta property="og:description" content="Below is Philips magic script for running stochastic.m interactively on condor. #!/bin/bash if [ "$#" -ne 3 ]; then echo "Usage: paramsFile jobsFile jobNumber" exit 1 fi HOME=/home/stochastic export HOME MCRROOT="/ldcg/matlab_r2015a" STOCH_PATH=${HOME}/O3/stochastic-pipeline/stochastic export STOCH_PATH matlab -nodesktop -nojvm -nosplash -noFigureWindows -nosoftwareopengl -singleCompThread \ -r "try …"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="/interactive-matlab-on-condor.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2020-04-20 00:00:00+10:00"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="/author/pat-meyers.html">
<meta property="article:section" content="matlab code"/>
<meta property="og:image" content="">
<title>Pat Meyers – Interactive matlab on condor</title>
</head>
<body>
<aside>
<div>
<a href="">
<img src="/theme/img/profile.png" alt="" title="">
</a>
<h1><a href=""></a></h1>
<nav>
<ul class="list">
<li><a href="index.html" target="_blank">Home</a></li>
</ul>
</nav>
<ul class="social">
</ul>
</div>
</aside>
<main>
<article class="single">
<header>
<h1 id="interactive-matlab-on-condor">Interactive matlab on condor</h1>
<p>
Posted on Mon 20 April 2020 in <a href="/category/matlab-code.html">matlab code</a>
</p>
</header>
<div>
<p>Below is Philips magic script for running <code>stochastic.m</code> interactively on condor.</p>
<div class="highlight"><pre><span></span><span class="ch">#!/bin/bash</span>
<span class="k">if</span> <span class="o">[</span> <span class="s2">"</span><span class="nv">$#</span><span class="s2">"</span> -ne <span class="m">3</span> <span class="o">]</span><span class="p">;</span> <span class="k">then</span>
<span class="nb">echo</span> <span class="s2">"Usage: paramsFile jobsFile jobNumber"</span>
<span class="nb">exit</span> <span class="m">1</span>
<span class="k">fi</span>
<span class="nv">HOME</span><span class="o">=</span>/home/stochastic
<span class="nb">export</span> HOME
<span class="nv">MCRROOT</span><span class="o">=</span><span class="s2">"/ldcg/matlab_r2015a"</span>
<span class="nv">STOCH_PATH</span><span class="o">=</span><span class="si">${</span><span class="nv">HOME</span><span class="si">}</span>/O3/stochastic-pipeline/stochastic
<span class="nb">export</span> STOCH_PATH
matlab -nodesktop -nojvm -nosplash -noFigureWindows -nosoftwareopengl -singleCompThread <span class="se">\</span>
-r <span class="s2">"try, \</span>
<span class="s2"> addpath('</span><span class="si">${</span><span class="nv">STOCH_PATH</span><span class="si">}</span><span class="s2">/CrossCorr/src_cc'); \</span>
<span class="s2"> addpath('</span><span class="si">${</span><span class="nv">STOCH_PATH</span><span class="si">}</span><span class="s2">/Utilities'); \</span>
<span class="s2"> addpath('</span><span class="si">${</span><span class="nv">STOCH_PATH</span><span class="si">}</span><span class="s2">/Utilities/Channel'); \</span>
<span class="s2"> addpath('</span><span class="si">${</span><span class="nv">STOCH_PATH</span><span class="si">}</span><span class="s2">/Utilities/misc'); \</span>
<span class="s2"> addpath('</span><span class="si">${</span><span class="nv">STOCH_PATH</span><span class="si">}</span><span class="s2">/Utilities/FTSeries'); \</span>
<span class="s2"> addpath('</span><span class="si">${</span><span class="nv">STOCH_PATH</span><span class="si">}</span><span class="s2">/Utilities/detgeom/matlab'); \</span>
<span class="s2"> addpath('</span><span class="si">${</span><span class="nv">STOCH_PATH</span><span class="si">}</span><span class="s2">/Utilities/ligotools/matlab'); \</span>
<span class="s2"> tic; \</span>
<span class="s2"> stochastic('</span><span class="si">${</span><span class="nv">1</span><span class="si">}</span><span class="s2">', '</span><span class="si">${</span><span class="nv">2</span><span class="si">}</span><span class="s2">', '</span><span class="si">${</span><span class="nv">3</span><span class="si">}</span><span class="s2">'); \</span>
<span class="s2"> jobTime = toc; \</span>
<span class="s2"> fprintf('%s Job %d completed after %f seconds\n', datestr(now), </span><span class="si">${</span><span class="nv">3</span><span class="si">}</span><span class="s2">, jobTime); \</span>
<span class="s2"> catch exc, \</span>
<span class="s2"> fprintf('%s Job %d failed with error %s\n', datestr(now), </span><span class="si">${</span><span class="nv">3</span><span class="si">}</span><span class="s2">, exc.message); \</span>
<span class="s2"> end; \</span>
<span class="s2"> quit;"</span> <span class="c1">#>/dev/null 2>&1</span>
</pre></div>
</div>
<div class="tag-cloud">
<p>
</p>
</div>
</article>
<footer>
<p>© </p>
<p> Powered by <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a>
</p> </footer>
</main>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " Pat Meyers ",
"url" : "",
"image": "",
"description": ""
}
</script>
</body>
</html>