Visible to Intel only — GUID: GUID-807A052D-DEFE-486B-88C9-7A9B115BC926
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.