28.07.2013 Views

Making OpenCL? Simple with Haskell - AMD Developer Central

Making OpenCL? Simple with Haskell - AMD Developer Central

Making OpenCL? Simple with Haskell - AMD Developer Central

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SIMPLIFIED VERSION<br />

data CLMod = CLModule String DeviceType<br />

deriving(Show, Typeable, Data)<br />

parseCLProg :: Monad m => Src -> String -> m CLModule<br />

initCL :: CatchIO m => CLModule -> m Module<br />

initCL (CLModule src dtype) =<br />

do (p:_) <br />

do c

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!