[Haskell-cafe] Accelerate package (CUDA). How to actually create an array?

Felipe Almeida Lessa felipe.lessa at gmail.com
Mon May 16 18:42:52 CEST 2011


On Mon, May 16, 2011 at 1:33 PM, Grigory Sarnitskiy <sargrigory at ya.ru> wrote:
> Hello!
>
> I'm probing CUDA with Haskell, accelerate package to be exact. Sound stupid, but I couldn't find how to actually construct an array, for example Vector Float.
>
> There is quite a number of examples provided with the package, but they seem not simple enough for me just to start.

There's fromIArray and fromList [1].  Does that answer your question?

[1] http://hackage.haskell.org/packages/archive/accelerate/0.8.1.0/doc/html/Data-Array-Accelerate.html#6

Cheers, =)

-- 
Felipe.



More information about the Haskell-Cafe mailing list