Skip to content

Commit 473c51e

Browse files
committed
pcph: add link to updated mandelbrot example
1 parent 8f84399 commit 473c51e

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

documentation/parallel-concurrent-programming-haskell-errata.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,22 +91,20 @@
9191
<!-- <li class="nav-header" id="toctitle">Table of Contents</il> -->
9292
<!-- </ul> -->
9393
<ul>
94-
<li><a href="#parallel-and-concurrent-programming-in-haskell-errata">Parallel and Concurrent Programming in Haskell: Errata</a><ul>
95-
<li><a href="#gpu-programming-with-accelerate">6. GPU Programming with Accelerate</a></li>
96-
</ul></li>
94+
<li><a href="#parallel-and-concurrent-programming-in-haskell-errata">Parallel and Concurrent Programming in Haskell: Errata</a></li>
9795
</ul>
9896
</div>
9997
<div class="container">
10098
<h1 id="parallel-and-concurrent-programming-in-haskell-errata">Parallel and Concurrent Programming in Haskell: Errata</h1>
101-
<p>This section lists changes and corrections to Simon Marlow's excellent book <a href="http://chimera.labs.oreilly.com/books/1230000000929"><em>Parallel and Concurrent Programming in Haskell</em></a> due to changes in the Accelerate API since the book's publication. The book is available for purchase from O'Rielly Media in electronic and paper formats, and can also be viewed online for free.</p>
102-
<h2 id="gpu-programming-with-accelerate">6. GPU Programming with Accelerate</h2>
99+
<p>This section lists changes and corrections to Simon Marlow's excellent book <a href="http://chimera.labs.oreilly.com/books/1230000000929"><em>Parallel and Concurrent Programming in Haskell</em></a> due to changes in the Accelerate API since the book's publication. The book is available for purchase from O'Rielly Media in electronic and paper formats, and can also be viewed online for free. The following notes are relevant for <em>Chapter 6: GPU Programming with Accelerate</em>.</p>
103100
<ul>
104101
<li><p>To run programs on the GPU, it is recommended to use the <code>accelerate-llvm-ptx</code> backend, rather than the (older, deprecated) <code>accelerate-cuda</code> backend. To use this backend, we need to use:</p>
105102
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span class="kw">import </span><span class="dt">Data.Array.Accelerate.LLVM.PTX</span></code></pre></div>
106103
<p>in place of:</p>
107104
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span class="kw">import </span><span class="dt">Data.Array.Accelerate.CUDA</span></code></pre></div>
108105
<p>Alternatively, if you do not have a CUDA capable GPU, rather than using the (very slow) interpreter backend you can use the <code>accelerate-llvm-native</code> backend for multicore CPUs, which was not available at the time of publication:</p>
109106
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span class="kw">import </span><span class="dt">Data.Array.Accelerate.LLVM.Native</span></code></pre></div></li>
107+
<li><p>The Accelerate API has changed in several key ways which makes it significantly easier to implement the <a href="/examples/mandelbrot.html">Mandelbrot Set program</a>. See the tutorial we have put together <a href="/examples/mandelbrot.html">here</a> for the updated instructions.</p></li>
110108
</ul>
111109
</div>
112110
</div>

md/documentation/parallel-concurrent-programming-haskell-errata.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ This section lists changes and corrections to Simon Marlow's excellent book
99
[*Parallel and Concurrent Programming in Haskell*](http://chimera.labs.oreilly.com/books/1230000000929)
1010
due to changes in the Accelerate API since the book's publication. The book is
1111
available for purchase from O'Rielly Media in electronic and paper formats, and
12-
can also be viewed online for free.
12+
can also be viewed online for free. The following notes are relevant for _Chapter
13+
6: GPU Programming with Accelerate_.
1314

1415

15-
## 6. GPU Programming with Accelerate
16-
1716
* To run programs on the GPU, it is recommended to use the
1817
`accelerate-llvm-ptx` backend, rather than the (older, deprecated)
1918
`accelerate-cuda` backend. To use this backend, we need to use:
@@ -32,3 +31,8 @@ import Data.Array.Accelerate.CUDA
3231
import Data.Array.Accelerate.LLVM.Native
3332
```
3433

34+
* The Accelerate API has changed in several key ways which makes it
35+
significantly easier to implement the [Mandelbrot Set program](/examples/mandelbrot.html).
36+
See the tutorial we have put together [here](/examples/mandelbrot.html) for
37+
the updated instructions.
38+

0 commit comments

Comments
 (0)