Visible to Intel only — GUID: GUID-E6557EA2-84F0-41F6-B5FC-F47BF776A956
Visible to Intel only — GUID: GUID-E6557EA2-84F0-41F6-B5FC-F47BF776A956
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.