Can SYCL use callbacks like OpenCL?
The purpose is to:
- enqueue kernel operation
- async the runtime calls the callback function when the kernel finishes
- callback function: do some management and enqueue read operation
- async the runtime calls the second callback function when the read op finishes
- second callback function: do some management, continue in 1 or do other stuff.
How can be done this with SYCL? What could be the most performant way? I need to do such decisions and management as soon as the op finishes, and dynamically do new ops.