|
@@
-1,352
+1,334
b''
|
|
1
|
1
|
{
|
|
2
|
2
|
"cells": [
|
|
3
|
3
|
{
|
|
4
|
4
|
"cell_type": "markdown",
|
|
5
|
5
|
"metadata": {},
|
|
6
|
6
|
"source": [
|
|
7
|
7
|
"<img src=\"../images/ipython_logo.png\">"
|
|
8
|
8
|
]
|
|
9
|
9
|
},
|
|
10
|
10
|
{
|
|
11
|
11
|
"cell_type": "markdown",
|
|
12
|
12
|
"metadata": {},
|
|
13
|
13
|
"source": [
|
|
14
|
14
|
"Back to the main [Index](../Index.ipynb)"
|
|
15
|
15
|
]
|
|
16
|
16
|
},
|
|
17
|
17
|
{
|
|
18
|
18
|
"cell_type": "markdown",
|
|
19
|
19
|
"metadata": {},
|
|
20
|
20
|
"source": [
|
|
21
|
21
|
"# Parallel Computing"
|
|
22
|
22
|
]
|
|
23
|
23
|
},
|
|
24
|
24
|
{
|
|
25
|
25
|
"cell_type": "markdown",
|
|
26
|
26
|
"metadata": {},
|
|
27
|
27
|
"source": [
|
|
28
|
28
|
"IPython includes an architecture and library for interactive parallel computing. The enables Python functions, along with their arguments, to be run in parallel a multicore CPU, cluster or cloud using a simple Python API."
|
|
29
|
29
|
]
|
|
30
|
30
|
},
|
|
31
|
31
|
{
|
|
32
|
32
|
"cell_type": "markdown",
|
|
33
|
33
|
"metadata": {},
|
|
34
|
34
|
"source": [
|
|
35
|
35
|
"## Tutorials"
|
|
36
|
36
|
]
|
|
37
|
37
|
},
|
|
38
|
38
|
{
|
|
39
|
39
|
"cell_type": "markdown",
|
|
40
|
40
|
"metadata": {},
|
|
41
|
41
|
"source": [
|
|
42
|
42
|
"* [Data Publication API](Data Publication API.ipynb) "
|
|
43
|
43
|
]
|
|
44
|
44
|
},
|
|
45
|
45
|
{
|
|
46
|
46
|
"cell_type": "markdown",
|
|
47
|
47
|
"metadata": {},
|
|
48
|
48
|
"source": [
|
|
49
|
49
|
"## Examples"
|
|
50
|
50
|
]
|
|
51
|
51
|
},
|
|
52
|
52
|
{
|
|
53
|
53
|
"cell_type": "markdown",
|
|
54
|
54
|
"metadata": {},
|
|
55
|
55
|
"source": [
|
|
56
|
56
|
"* [Monitoring an MPI Simulation - 1](Monitoring an MPI Simulation - 1.ipynb)\n",
|
|
57
|
57
|
"* [Monitoring an MPI Simulation - 2](Monitoring an MPI Simulation - 2.ipynb)\n",
|
|
58
|
58
|
"* [Parallel Decorator and map](Parallel Decorator and map.ipynb)\n",
|
|
59
|
59
|
"* [Parallel Magics](Parallel Magics.ipynb)\n",
|
|
60
|
60
|
"* [Using Dill](Using Dill.ipynb)\n",
|
|
61
|
61
|
"* [Using MPI with IPython Parallel](Using MPI with IPython Parallel.ipynb)\n",
|
|
62
|
62
|
"* [Monte Carlo Options](Monte Carlo Options.ipynb)"
|
|
63
|
63
|
]
|
|
64
|
64
|
},
|
|
65
|
65
|
{
|
|
66
|
66
|
"cell_type": "markdown",
|
|
67
|
67
|
"metadata": {},
|
|
68
|
68
|
"source": [
|
|
69
|
69
|
"## Non-notebook examples"
|
|
70
|
70
|
]
|
|
71
|
71
|
},
|
|
72
|
72
|
{
|
|
73
|
73
|
"cell_type": "markdown",
|
|
74
|
74
|
"metadata": {},
|
|
75
|
75
|
"source": [
|
|
76
|
76
|
"This directory also contains examples that are regular Python (`.py`) files."
|
|
77
|
77
|
]
|
|
78
|
78
|
},
|
|
79
|
79
|
{
|
|
80
|
80
|
"cell_type": "code",
|
|
81
|
81
|
"execution_count": 1,
|
|
82
|
82
|
"metadata": {
|
|
83
|
83
|
"collapsed": false
|
|
84
|
84
|
},
|
|
85
|
85
|
"outputs": [
|
|
86
|
86
|
{
|
|
87
|
87
|
"data": {
|
|
88
|
88
|
"text/html": [
|
|
89
|
89
|
"<a href='customresults.py' target='_blank'>customresults.py</a><br>"
|
|
90
|
90
|
],
|
|
91
|
91
|
"text/plain": [
|
|
92
|
92
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/customresults.py"
|
|
93
|
93
|
]
|
|
94
|
94
|
},
|
|
95
|
95
|
"metadata": {},
|
|
96
|
96
|
"output_type": "display_data"
|
|
97
|
97
|
},
|
|
98
|
98
|
{
|
|
99
|
99
|
"data": {
|
|
100
|
100
|
"text/html": [
|
|
101
|
101
|
"<a href='dagdeps.py' target='_blank'>dagdeps.py</a><br>"
|
|
102
|
102
|
],
|
|
103
|
103
|
"text/plain": [
|
|
104
|
104
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/dagdeps.py"
|
|
105
|
105
|
]
|
|
106
|
106
|
},
|
|
107
|
107
|
"metadata": {},
|
|
108
|
108
|
"output_type": "display_data"
|
|
109
|
109
|
},
|
|
110
|
110
|
{
|
|
111
|
111
|
"data": {
|
|
112
|
112
|
"text/html": [
|
|
113
|
113
|
"<a href='dependencies.py' target='_blank'>dependencies.py</a><br>"
|
|
114
|
114
|
],
|
|
115
|
115
|
"text/plain": [
|
|
116
|
116
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/dependencies.py"
|
|
117
|
117
|
]
|
|
118
|
118
|
},
|
|
119
|
119
|
"metadata": {},
|
|
120
|
120
|
"output_type": "display_data"
|
|
121
|
121
|
},
|
|
122
|
122
|
{
|
|
123
|
123
|
"data": {
|
|
124
|
124
|
"text/html": [
|
|
125
|
125
|
"<a href='fetchparse.py' target='_blank'>fetchparse.py</a><br>"
|
|
126
|
126
|
],
|
|
127
|
127
|
"text/plain": [
|
|
128
|
128
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/fetchparse.py"
|
|
129
|
129
|
]
|
|
130
|
130
|
},
|
|
131
|
131
|
"metadata": {},
|
|
132
|
132
|
"output_type": "display_data"
|
|
133
|
133
|
},
|
|
134
|
134
|
{
|
|
135
|
135
|
"data": {
|
|
136
|
136
|
"text/html": [
|
|
137
|
137
|
"<a href='iopubwatcher.py' target='_blank'>iopubwatcher.py</a><br>"
|
|
138
|
138
|
],
|
|
139
|
139
|
"text/plain": [
|
|
140
|
140
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/iopubwatcher.py"
|
|
141
|
141
|
]
|
|
142
|
142
|
},
|
|
143
|
143
|
"metadata": {},
|
|
144
|
144
|
"output_type": "display_data"
|
|
145
|
145
|
},
|
|
146
|
146
|
{
|
|
147
|
147
|
"data": {
|
|
148
|
148
|
"text/html": [
|
|
149
|
149
|
"<a href='itermapresult.py' target='_blank'>itermapresult.py</a><br>"
|
|
150
|
150
|
],
|
|
151
|
151
|
"text/plain": [
|
|
152
|
152
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/itermapresult.py"
|
|
153
|
153
|
]
|
|
154
|
154
|
},
|
|
155
|
155
|
"metadata": {},
|
|
156
|
156
|
"output_type": "display_data"
|
|
157
|
157
|
},
|
|
158
|
158
|
{
|
|
159
|
159
|
"data": {
|
|
160
|
160
|
"text/html": [
|
|
161
|
161
|
"<a href='nwmerge.py' target='_blank'>nwmerge.py</a><br>"
|
|
162
|
162
|
],
|
|
163
|
163
|
"text/plain": [
|
|
164
|
164
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/nwmerge.py"
|
|
165
|
165
|
]
|
|
166
|
166
|
},
|
|
167
|
167
|
"metadata": {},
|
|
168
|
168
|
"output_type": "display_data"
|
|
169
|
169
|
},
|
|
170
|
170
|
{
|
|
171
|
171
|
"data": {
|
|
172
|
172
|
"text/html": [
|
|
173
|
173
|
"<a href='phistogram.py' target='_blank'>phistogram.py</a><br>"
|
|
174
|
174
|
],
|
|
175
|
175
|
"text/plain": [
|
|
176
|
176
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/phistogram.py"
|
|
177
|
177
|
]
|
|
178
|
178
|
},
|
|
179
|
179
|
"metadata": {},
|
|
180
|
180
|
"output_type": "display_data"
|
|
181
|
181
|
},
|
|
182
|
182
|
{
|
|
183
|
183
|
"data": {
|
|
184
|
184
|
"text/html": [
|
|
185
|
185
|
"<a href='task_profiler.py' target='_blank'>task_profiler.py</a><br>"
|
|
186
|
186
|
],
|
|
187
|
187
|
"text/plain": [
|
|
188
|
188
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/task_profiler.py"
|
|
189
|
189
|
]
|
|
190
|
190
|
},
|
|
191
|
191
|
"metadata": {},
|
|
192
|
192
|
"output_type": "display_data"
|
|
193
|
193
|
},
|
|
194
|
194
|
{
|
|
195
|
195
|
"data": {
|
|
196
|
196
|
"text/html": [
|
|
197
|
197
|
"<a href='throughput.py' target='_blank'>throughput.py</a><br>"
|
|
198
|
198
|
],
|
|
199
|
199
|
"text/plain": [
|
|
200
|
200
|
"/Users/bgranger/Documents/Computing/IPython/code/ipython/examples/Parallel Computing/throughput.py"
|
|
201
|
201
|
]
|
|
202
|
202
|
},
|
|
203
|
203
|
"metadata": {},
|
|
204
|
204
|
"output_type": "display_data"
|
|
205
|
205
|
}
|
|
206
|
206
|
],
|
|
207
|
207
|
"source": [
|
|
208
|
208
|
"%run ../utils/list_pyfiles.ipy"
|
|
209
|
209
|
]
|
|
210
|
210
|
},
|
|
211
|
211
|
{
|
|
212
|
212
|
"cell_type": "markdown",
|
|
213
|
213
|
"metadata": {},
|
|
214
|
214
|
"source": [
|
|
215
|
215
|
"More substantial examples can be found in subdirectories:"
|
|
216
|
216
|
]
|
|
217
|
217
|
},
|
|
218
|
218
|
{
|
|
219
|
219
|
"cell_type": "code",
|
|
220
|
220
|
"execution_count": 2,
|
|
221
|
221
|
"metadata": {
|
|
222
|
222
|
"collapsed": false
|
|
223
|
223
|
},
|
|
224
|
224
|
"outputs": [
|
|
225
|
225
|
{
|
|
226
|
226
|
"data": {
|
|
227
|
227
|
"text/html": [
|
|
228
|
228
|
"daVinci Word Count/<br>\n",
|
|
229
|
229
|
" <a href='daVinci Word Count/pwordfreq.py' target='_blank'>pwordfreq.py</a><br>\n",
|
|
230
|
230
|
" <a href='daVinci Word Count/wordfreq.py' target='_blank'>wordfreq.py</a><br>"
|
|
231
|
231
|
],
|
|
232
|
232
|
"text/plain": [
|
|
233
|
233
|
"daVinci Word Count/\n",
|
|
234
|
234
|
" pwordfreq.py\n",
|
|
235
|
235
|
" wordfreq.py"
|
|
236
|
236
|
]
|
|
237
|
237
|
},
|
|
238
|
238
|
"metadata": {},
|
|
239
|
239
|
"output_type": "display_data"
|
|
240
|
240
|
},
|
|
241
|
241
|
{
|
|
242
|
242
|
"data": {
|
|
243
|
243
|
"text/html": [
|
|
244
|
244
|
"interengine/<br>\n",
|
|
245
|
245
|
" <a href='interengine/bintree.py' target='_blank'>bintree.py</a><br>\n",
|
|
246
|
246
|
" <a href='interengine/bintree_script.py' target='_blank'>bintree_script.py</a><br>\n",
|
|
247
|
247
|
" <a href='interengine/communicator.py' target='_blank'>communicator.py</a><br>\n",
|
|
248
|
248
|
" <a href='interengine/interengine.py' target='_blank'>interengine.py</a><br>"
|
|
249
|
249
|
],
|
|
250
|
250
|
"text/plain": [
|
|
251
|
251
|
"interengine/\n",
|
|
252
|
252
|
" bintree.py\n",
|
|
253
|
253
|
" bintree_script.py\n",
|
|
254
|
254
|
" communicator.py\n",
|
|
255
|
255
|
" interengine.py"
|
|
256
|
256
|
]
|
|
257
|
257
|
},
|
|
258
|
258
|
"metadata": {},
|
|
259
|
259
|
"output_type": "display_data"
|
|
260
|
260
|
},
|
|
261
|
261
|
{
|
|
262
|
262
|
"data": {
|
|
263
|
263
|
"text/html": [],
|
|
264
|
264
|
"text/plain": []
|
|
265
|
265
|
},
|
|
266
|
266
|
"metadata": {},
|
|
267
|
267
|
"output_type": "display_data"
|
|
268
|
268
|
},
|
|
269
|
269
|
{
|
|
270
|
270
|
"data": {
|
|
271
|
271
|
"text/html": [
|
|
272
|
272
|
"pi/<br>\n",
|
|
273
|
273
|
" <a href='pi/parallelpi.py' target='_blank'>parallelpi.py</a><br>\n",
|
|
274
|
274
|
" <a href='pi/pidigits.py' target='_blank'>pidigits.py</a><br>"
|
|
275
|
275
|
],
|
|
276
|
276
|
"text/plain": [
|
|
277
|
277
|
"pi/\n",
|
|
278
|
278
|
" parallelpi.py\n",
|
|
279
|
279
|
" pidigits.py"
|
|
280
|
280
|
]
|
|
281
|
281
|
},
|
|
282
|
282
|
"metadata": {},
|
|
283
|
283
|
"output_type": "display_data"
|
|
284
|
284
|
},
|
|
285
|
285
|
{
|
|
286
|
286
|
"data": {
|
|
287
|
287
|
"text/html": [
|
|
288
|
288
|
"rmt/<br>\n",
|
|
289
|
289
|
" <a href='rmt/rmt.ipy' target='_blank'>rmt.ipy</a><br>\n",
|
|
290
|
290
|
" <a href='rmt/rmt.ipynb' target='_blank'>rmt.ipynb</a><br>\n",
|
|
291
|
291
|
" <a href='rmt/rmtkernel.py' target='_blank'>rmtkernel.py</a><br>"
|
|
292
|
292
|
],
|
|
293
|
293
|
"text/plain": [
|
|
294
|
294
|
"rmt/\n",
|
|
295
|
295
|
" rmt.ipy\n",
|
|
296
|
296
|
" rmt.ipynb\n",
|
|
297
|
297
|
" rmtkernel.py"
|
|
298
|
298
|
]
|
|
299
|
299
|
},
|
|
300
|
300
|
"metadata": {},
|
|
301
|
301
|
"output_type": "display_data"
|
|
302
|
302
|
},
|
|
303
|
303
|
{
|
|
304
|
304
|
"data": {
|
|
305
|
305
|
"text/html": [
|
|
306
|
306
|
"wave2D/<br>\n",
|
|
307
|
307
|
" <a href='wave2D/communicator.py' target='_blank'>communicator.py</a><br>\n",
|
|
308
|
308
|
" <a href='wave2D/parallelwave-mpi.py' target='_blank'>parallelwave-mpi.py</a><br>\n",
|
|
309
|
309
|
" <a href='wave2D/parallelwave.py' target='_blank'>parallelwave.py</a><br>\n",
|
|
310
|
310
|
" <a href='wave2D/RectPartitioner.py' target='_blank'>RectPartitioner.py</a><br>\n",
|
|
311
|
311
|
" <a href='wave2D/wavesolver.py' target='_blank'>wavesolver.py</a><br>"
|
|
312
|
312
|
],
|
|
313
|
313
|
"text/plain": [
|
|
314
|
314
|
"wave2D/\n",
|
|
315
|
315
|
" communicator.py\n",
|
|
316
|
316
|
" parallelwave-mpi.py\n",
|
|
317
|
317
|
" parallelwave.py\n",
|
|
318
|
318
|
" RectPartitioner.py\n",
|
|
319
|
319
|
" wavesolver.py"
|
|
320
|
320
|
]
|
|
321
|
321
|
},
|
|
322
|
322
|
"metadata": {},
|
|
323
|
323
|
"output_type": "display_data"
|
|
324
|
|
},
|
|
325
|
|
{
|
|
326
|
|
"data": {
|
|
327
|
|
"text/html": [
|
|
328
|
|
"workflow/<br>\n",
|
|
329
|
|
" <a href='workflow/client.py' target='_blank'>client.py</a><br>\n",
|
|
330
|
|
" <a href='workflow/job_wrapper.py' target='_blank'>job_wrapper.py</a><br>\n",
|
|
331
|
|
" <a href='workflow/wmanager.py' target='_blank'>wmanager.py</a><br>"
|
|
332
|
|
],
|
|
333
|
|
"text/plain": [
|
|
334
|
|
"workflow/\n",
|
|
335
|
|
" client.py\n",
|
|
336
|
|
" job_wrapper.py\n",
|
|
337
|
|
" wmanager.py"
|
|
338
|
|
]
|
|
339
|
|
},
|
|
340
|
|
"metadata": {},
|
|
341
|
|
"output_type": "display_data"
|
|
342
|
324
|
}
|
|
343
|
325
|
],
|
|
344
|
326
|
"source": [
|
|
345
|
327
|
"%run ../utils/list_subdirs.ipy"
|
|
346
|
328
|
]
|
|
347
|
329
|
}
|
|
348
|
330
|
],
|
|
349
|
331
|
"metadata": {},
|
|
350
|
332
|
"nbformat": 4,
|
|
351
|
333
|
"nbformat_minor": 0
|
|
352
|
334
|
}
No newline at end of file
|