Visible to Intel only — GUID: GUID-DCF0CAF2-DDA8-4BAA-B0F5-A1C762257539
oneTBB Code Sample
Two basic oneTBB code samples are available within the oneAPI GitHub repository https://github.com/oneapi-src/oneAPI-samples/tree/master/Libraries/oneTBB. Both samples are prepared for CPU and GPU.
tbb-async-sycl: illustrates how computational kernel can be split for execution between CPU and GPU using oneTBB Flow Graph asynchronous node and functional node. The Flow Graph asynchronous node uses SYCL* to implement calculations on GPU while the functional node does CPU part of calculations.
tbb-task-sycl: illustrates how two oneTBB tasks can execute similar computational kernels with one task executing SYCL code and another one the oneTBB code.
tbb-resumable-tasks-sycl: illustrates how a computational kernel can be split for execution between a CPU and GPU using oneTBB resumable task and parallel_for. The resumable task uses SYCL to implement calculations on GPU while parallel_for does the CPU portion of calculations.