Data Parallel Haskell is the codename for an extension to the Glasgow Haskell Compiler and its libraries to support nested data parallelism.
Questions tagged [data-parallel-haskell]
10 questions
33
votes
1 answer
What is the difference between PArray and [::] in Data Parallel Haskell?
I've been doing a lot of research into Data Parallel Haskell, and found two seperate parallel array types. The [::] type seems to show up more in the research papers and seems to be the ideal type, but PArray seems to be stuck in everywhere. The…

gereeter
- 4,731
- 1
- 28
- 28
12
votes
2 answers
How can I help SpecConstr in GHC?
I'm using GHC 7.4.1 to try to compile a program that uses Repa. But partway through compilation, I'm running out of memory. With ghc -v, I can see that it's getting stuck in the SpecConstr phase.
SpecConstr is one of GHC's Core-to-Core…

Chad Scherrer
- 773
- 4
- 16
11
votes
2 answers
What are the key differences between the Repa 2 and 3 APIs?
To be more specific, I have the following innocuous-looking little Repa 3 program:
{-# LANGUAGE QuasiQuotes #-}
import Prelude hiding (map, zipWith)
import System.Environment (getArgs)
import Data.Word (Word8)
import Data.Array.Repa
import…

sacheie
- 768
- 6
- 16
9
votes
1 answer
Why do wet get the "Can't vectorise expression GHC.Prim.Int#" error in DPH programs?
I was trying to implement the nqueens problem using DPH but I ended up with the Can't vectorise GHC.Prim.Int# error. When I googled for the error I found a GHC Bug which talks about vectorizing literals used for pattern matching…

prasannak
- 493
- 2
- 7
7
votes
1 answer
Difference between Repa and DPH
I recently read the paper on upcoming generalized stream fusion in vector and DPH libraries. It seems to be very interesting development. I am now starting to experiment with DPH (starting with GHC 7.6, and plan to upgrade to 7.8 SIMD version when…

Sal
- 4,312
- 1
- 17
- 26
6
votes
1 answer
Runtime exception with Data Parallel Haskell / GHC 7.4.2
I'm trying to do some simple experiements with Data Parallel Haskell running, but I clearly have some options wrong. even when I try something very simple like
sumP [:1.0,2.0:]
I get an exception
Exception indexParr: out of bounds parallel array…

GregD
- 93
- 5
3
votes
1 answer
Data Parallel Haskell Prefix Sum
I'm playing with some Data Parallel Haskell code and found myself in need of a prefix sum. However I didn't see any basic operator in the dph package for prefix sum.
I rolled my own, but, since I'm new to dph, I'm not sure if it's properly taking…

rampion
- 87,131
- 49
- 199
- 315
3
votes
1 answer
Parallel Merging of two sorted lists
I am trying to merge two list in parallel. I have two sorted lists [(i, j, val)]. Lists are sorted on j and for same j, sorted on i. If the two lists contain the same (i, j) then their
values are added and combined into one, e.g. if the first list…

keep_learning
- 1,057
- 5
- 14
3
votes
1 answer
Parallel Repa code doesn't create sparks
I'm writing code to do a subset product: it takes a list of elements and a list of indicator variables (of the same length). The product is computed in a tree, which is crucial to our application. Each product is expensive, so my goal was to compute…

crockeea
- 21,651
- 10
- 48
- 101
3
votes
2 answers
Trying to experiment with data parallel Haskell - but can't get it to install
Is anyone using data parallel Haskell with the 2012.4.0.0 Haskell platform?
I'm a Haskell beginner - but wanted to experiment with switching from lists to parallel arrays.
When I try and run
cabal install dph-examples
I get a build problem with…

GregD
- 93
- 5