Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 it comes out). I also see from Repa library documentation that it can do the parallel array work. Repa seems to be the mature version compared to DPH which wasn't deemed ready as of GHC 7.4. Now that DPH seems to be maturing, I am wondering what are the main pros and cons between Repa and DPH packages, as of GHC 7.6. I searched StackOverflow and google, but couldn't find comparisons between Repa and DPH. Hence, this question.

like image 374
Sal Avatar asked Mar 09 '13 19:03

Sal


1 Answers

From the page about DPH on HaskellWiki:

DPH focuses on irregular data parallelism. For regular data parallel code in Haskell, please consider using the companion library Repa, which builds on the parallel array infrastructure of DPH.

like image 107
leventov Avatar answered Sep 29 '22 18:09

leventov