Skip to content

Commit

Permalink
Fix deadlinks for first part of chunk 4 of #690 (#786)
Browse files Browse the repository at this point in the history
I changed the links to the v0.4 docs to be findable again. 
I also changed the link to Lindsey Kupers current website, but I am not sure, whether this is wanted, because this is technically the same link as in the old version.
  • Loading branch information
felixcremer authored May 7, 2020
1 parent 4c998de commit c891e47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions blog/2016/03/parallelaccelerator.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@def rss = """ An introduction to ParallelAccelerator.jl | The High Performance Scripting team at Intel Labs recently released... """
@def published = "1 March 2016"
@def title = "An introduction to ParallelAccelerator.jl"
@def authors = """<a href="https://www.cs.indiana.edu/~lkuper/">Lindsey Kuper</a>"""
@def authors = """<a href="https://users.soe.ucsc.edu/~lkuper/">Lindsey Kuper</a>"""
@def hascode = true

The High Performance Scripting team at Intel Labs recently released
Expand Down Expand Up @@ -289,12 +289,12 @@ data-parallel reduce operations when they are called on arrays.
### Array comprehension

Julia supports
[array comprehensions](https://docs.julialang.org/en/release-0.4/manual/arrays/#comprehensions),
[array comprehensions](https://docs.julialang.org/en/v0.4/manual/arrays/#comprehensions),
a convenient and concise way to construct arrays. For example, the
expressions that initialize the five input arrays in the Black-Scholes
example above are all array comprehensions. As a more sophisticated
example, the following `avg` function, taken from
[the Julia manual](https://docs.julialang.org/en/release-0.4/manual/arrays/#comprehensions),
[the Julia manual](https://docs.julialang.org/en/v0.4/manual/arrays/#comprehensions),
takes a one-dimensional input array `x` of length *n* and uses an
array comprehension to construct an output array of length *n*-2, in
which each element is a weighted average of the corresponding element
Expand Down Expand Up @@ -347,7 +347,7 @@ on a 2D array of `Float32`s: the pixels of the source image. It's
easy to obtain such an array using, for instance, the `load` function
from the [Images.jl](https://github.com/timholy/Images.jl) library,
followed by a call to
[`convert`](https://docs.julialang.org/en/release-0.4/manual/conversion-and-promotion/#conversion)
[`convert`](https://docs.julialang.org/en/v0.4/manual/conversion-and-promotion/#conversion)
to get an array of type `Array{Float32,2}`. (For simplicity, we're
assuming that the input image is a grayscale image, so each pixel has
just one value instead of red, green, and blue values. However, it
Expand Down Expand Up @@ -422,7 +422,7 @@ runStencil(kernel :: Function, buffer1, buffer2, ..., iteration :: Int, boundary
```

In `blur`, the call to `runStencil` uses Julia's
[`do`-block syntax for function arguments](https://docs.julialang.org/en/release-0.4/manual/functions/#do-block-syntax-for-function-arguments),
[`do`-block syntax for function arguments](https://docs.julialang.org/en/v0.4/manual/functions/#do-block-syntax-for-function-arguments),
so the `do b, a ... end` block is actually the first argument to the
`runStencil` call. The `do` block creates an anonymous function that
binds the variables `b` and `a`. The arguments `buffer1, buffer2,
Expand Down Expand Up @@ -510,7 +510,7 @@ process:
![The ParallelAccelerator compiler pipeline](/assets/blog/parallelaccelerator_figures/compiler-pipeline.png?raw=true)

As many readers of this blog will know, Julia has good support for
[inspecting and manipulating its own ASTs](https://docs.julialang.org/en/release-0.4/devdocs/reflection/).
[inspecting and manipulating its own ASTs](https://docs.julialang.org/en/v0.4/devdocs/reflection/).
Its built-in `code_typed` function will return the AST of any function
after Julia's type inference has taken place. This is very convenient
for ParallelAccelerator, which is able to use the output from
Expand Down

0 comments on commit c891e47

Please sign in to comment.