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.

HELLO WORLD OPENCL C SOURCE<br />

__constant char hw[] = "Hello World\n";<br />

__kernel void hello(__global char * out) {<br />

size_t tid = get_global_id(0);<br />

out[tid] = hw[tid];<br />

}<br />

6 | <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!