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.

THE BIG IDEA BEHIND OPENCL<br />

<strong>OpenCL</strong> execution model …<br />

– Define N-dimensional computation domain<br />

– Execute a kernel at each point in computation domain<br />

Traditional loops<br />

void<br />

trad_mul(int n,<br />

const float *a,<br />

const float *b,<br />

float *c)<br />

{<br />

int i;<br />

for (i=0; i

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

Saved successfully!

Ooh no, something went wrong!