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.

SYNCHRONIZATION: QUEUES & EVENTS<br />

Each individual queue can execute in-order or out-of-order<br />

– For in-order queue, all commands execute in order<br />

You must explicitly synchronize between queues<br />

– Multiple devices each have their own queue<br />

– Multiple queues per device<br />

– Use events to synchronize<br />

Events<br />

– Commands return events and obey waitlists<br />

– clEnqueue*(. . . , num_events_in_waitlist, *event_waitlist, *event);<br />

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