Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.29 KB

File metadata and controls

38 lines (26 loc) · 1.29 KB

SYCL Academy

Exercise 11: In Order Queue


In this exercise you will learn how to create a fixed data flow using an in-order queue.


1.) In order queue with buffer/accessor model

Using the application from exercise 10 which uses the buffer/accessor model convert the queue to in-order using the property::queue::in_order property, converting the data flow graph to a fixed execution order.

Feel free to have the kernel functions execute in any order you like providing the necessary dependencies described in exercise 10 are still met.

2.) In order queue with USM model

Now do the same using the application from exercise 10 which uses the USM model, again converting the queue to in-order, converting the data flow graph to a fixed execution order.

Again feel free to have the kernel functions execute in any order you like providing the necessary dependencies described in exercise 10 are still met.

Note that in the USM model when using an in-order queue it is no longer necessary to chain commands using events.

Build and execution hints

cmake -DSYCL_ACADEMY_USE_COMPUTECPP=ON -DSYCL_IMPLEMENTATION_INSTALL_ROOT=/insert/path/to/computecpp ..
make exercise_11_in_order_queue_source
./Code_Exercises/Exercise_11_In_Order_Queue/exercise_11_in_order_queue_source