Accelerate defines an embedded language of array computations for high-performance computing in Haskell. Computations on multi-dimensional, regular arrays are expressed in the form of parameterised collective operations (such as maps, reductions, and permutations). These computations are online-compiled and executed on a range of architectures.
Questions tagged [accelerate-haskell]
20 questions
1
vote
1 answer
Parallel Programming using Accelerate (Data.Array.Accelerate)
Situation
Currently I'm working on a project which handles edge detection. Therefore I'd like to calculate the algorithms using accelerated arrays to achieve better performance. Unfortunately, I'm pretty new to functional programming, aswell as…

oRole
- 1,316
- 1
- 8
- 24
1
vote
2 answers
Look-up table in haskell accelerate
I'm doing a fun side project using Haskell's accelerate library. I have a function that I need to write, which in pure Haskell would look like this:
oddfac :: Int -> Int
oddfac n = product [1,3...n]
i.e. similar to the factorial function, but only…

mszep
- 410
- 3
- 12
1
vote
1 answer
Converting accelerate's A array representation to repa's U array representation
I'd like to convert an accelerate array to a repa array, before then using writeImageToBMP from repa-io to write the array to a BMP file. Ignore the fact that there exists such a function in accelerate-io, I'm just using it as an example of the…

Rob Stewart
- 1,812
- 1
- 12
- 25
0
votes
1 answer
The program 'llvm-config' version ==9.0.* is required but it could not be found
I wanted to install llvm-hs with the command cabal install llvm-hs -fshared-llvm, according to the installation guide of Accelerate on the website: https://www.acceleratehs.org/get-started.html. But something errors. After that I tried cabal install…

Joes de Jonge
- 161
- 6
0
votes
0 answers
Filling a 2D accelerate array one row at a time
λ> import Data.Array.Accelerate
λ> import Data.Array.Accelerate.Interpreter (run)
Say you have a a 2D accelerate array:
λ> :t arr
arr :: Acc (Array DIM2 Int)
λ> run $ unit $ shape arr
Scalar Z [Z :. 4 :. 3]
and a 1D accelerate vector of length 4…

tsorn
- 3,365
- 1
- 29
- 48