[Haskell-cafe] question regarding Data.Array.Accelerate

Philipp philipp.kant at web.de
Sun Feb 12 03:33:21 CET 2012


Hi,

I have read the papers about the accelerate package that provides a
high-level interface to nvidia's cuda library and am very intrigued. 
However, I have some start-up problems.  Is this the right place for such
questions?

In particular, I'm having trouble with lifting and unlifting.  From what I
understood, I should be able to use unlift to get an Int from an Exp (Plain
Int), but when I try, for example,

(unlift . lift) (1::Int) :: Int

ghci complains with 

"No instance for (Unlift Int)".

I have the latest versions of accelerate (accelerate-0.9.0.1) and ghc
(version 7.4.1).

I think I'm missing something obvious, so if any of you could point it out
to me I would be glad.

Thanks,
Philipp

--
View this message in context: http://haskell.1045720.n5.nabble.com/question-regarding-Data-Array-Accelerate-tp5476144p5476144.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list