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

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

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

Saved successfully!

Ooh no, something went wrong!