Making OpenCL? Simple with Haskell - AMD Developer Central
Making OpenCL? Simple with Haskell - AMD Developer Central
Making OpenCL? Simple with Haskell - AMD Developer Central
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
BUT THERE IS A PROBLEM (I THINK)<br />
Quasiquotation requires instances for Typeable and Data<br />
Remember that H<strong>OpenCL</strong> has definitions of the form:<br />
data Platform_<br />
type Platform = Ptr Platform_<br />
No way to derive Typeable and Data for Platform_<br />
This makes sense in the case that we want to build and retain values of<br />
type Platform at compile time, what does it mean to preserve a pointer?<br />
46 | <strong>Making</strong> <strong>OpenCL</strong> <strong>Simple</strong> | January, 2011 | Public