Permalink
Browse files

Minor changes to parallel tutorial.

  • Loading branch information...
1 parent 860113b commit 2dfafcec8f6fcf6260ecdbc64e789fafd119baab @ellisonbg ellisonbg committed Oct 31, 2012
@@ -42,6 +42,21 @@
]
},
{
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "`IPython.parallel` does solve:\n",
+ "\n",
+ "* Code distribution and execution\n",
+ "* Code scheduling with load balancing, dependencies, etc.\n",
+ "\n",
+ "`IPython.parallel` does **not** solve:\n",
+ "\n",
+ "* Message passing (MPI, ZeroMQ/PyZMQ)\n",
+ "* Data management, distribution, io"
+ ]
+ },
+ {
"cell_type": "heading",
"level": 2,
"metadata": {},
@@ -233,7 +248,7 @@
"language": "python",
"metadata": {},
"outputs": [],
- "prompt_number": 10
+ "prompt_number": 1
},
{
"cell_type": "code",
@@ -246,13 +261,13 @@
"outputs": [
{
"output_type": "pyout",
- "prompt_number": 11,
+ "prompt_number": 4,
"text": [
"[0, 1, 2, 3]"
]
}
],
- "prompt_number": 11
+ "prompt_number": 4
},
{
"cell_type": "markdown",
@@ -271,7 +286,7 @@
"language": "python",
"metadata": {},
"outputs": [],
- "prompt_number": 12
+ "prompt_number": 5
},
{
"cell_type": "code",
@@ -284,13 +299,13 @@
"outputs": [
{
"output_type": "pyout",
- "prompt_number": 13,
+ "prompt_number": 6,
"text": [
"30"
]
}
],
- "prompt_number": 13
+ "prompt_number": 6
},
{
"cell_type": "markdown",
@@ -305,20 +320,39 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "rc[0].apply(mul, 5, 6)"
+ "dv = rc[0]; dv"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
- "prompt_number": 14,
+ "prompt_number": 7,
+ "text": [
+ "<DirectView 0>"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "dv.apply(mul, 5, 6)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "pyout",
+ "prompt_number": 8,
"text": [
"30"
]
}
],
- "prompt_number": 14
+ "prompt_number": 8
},
{
"cell_type": "markdown",
@@ -338,13 +372,13 @@
"outputs": [
{
"output_type": "pyout",
- "prompt_number": 15,
+ "prompt_number": 9,
"text": [
"[30, 30, 30, 30]"
]
}
],
- "prompt_number": 15
+ "prompt_number": 9
},
{
"cell_type": "markdown",
@@ -364,13 +398,13 @@
"outputs": [
{
"output_type": "pyout",
- "prompt_number": 16,
+ "prompt_number": 10,
"text": [
"[2, 6, 12, 20, 30, 42, 56, 72, 90]"
]
}
],
- "prompt_number": 16
+ "prompt_number": 10
},
{
"cell_type": "markdown",
@@ -391,13 +425,13 @@
"outputs": [
{
"output_type": "pyout",
- "prompt_number": 17,
+ "prompt_number": 11,
"text": [
"[2, 6, 12, 20, 30, 42, 56, 72, 90]"
]
}
],
- "prompt_number": 17
+ "prompt_number": 11
},
{
"cell_type": "markdown",
@@ -422,6 +456,10 @@
"[StarCluster](http://web.mit.edu/stardev/cluster/), so the IO and CPU\n",
"performance are not impressive compared to a physical cluster.\n",
"\n",
+ "* The dotted line is 50% overhead.\n",
+ "* Above the line is <50% overhead.\n",
+ "* Below the line is >50% overhead.\n",
+ "\n",
"![map](files/figures/map.png)"
]
},
Oops, something went wrong.

0 comments on commit 2dfafce

Please sign in to comment.