You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm learning oneTBB now. In the future I would like to use oneTBB as an easier interface to submit work for execution on Intel GPUs. Is it a good approach or is it better to embrace SYCL and leave oneTBB aside? My task at hand is to convert a shared-memory code instrumented with OpenMP pragmas to oneTBB and run most of the work in parallel_for loops on GPU. Think of it as an analog to OpenMP offloading work to GPUs. If possible, would you please point me to some oneTBB parallel_for examples schedulling work for execution on GPUs? So far, I have found these three examples: https://github.com/oneapi-src/oneAPI-samples/tree/master/Libraries/oneTBB. But I cannot say I find it easy and straightforward to run code on GPUs. Thank you for your help!
The text was updated successfully, but these errors were encountered:
oneTBB only provides CPU parallelism, so you would need to use SYCL or oneDPL (Getting Started, samples) for GPU offloading.
The examples you found above illustrate how more advanced oneTBB features (flow graph, task group, and resumable tasks) can be used to split and coordinate work between CPU (oneTBB parallel algorithms) and GPU (SYCL parallel kernels).
Dear all,
I'm learning oneTBB now. In the future I would like to use oneTBB as an easier interface to submit work for execution on Intel GPUs. Is it a good approach or is it better to embrace SYCL and leave oneTBB aside? My task at hand is to convert a shared-memory code instrumented with OpenMP pragmas to oneTBB and run most of the work in
parallel_for
loops on GPU. Think of it as an analog to OpenMP offloading work to GPUs. If possible, would you please point me to some oneTBBparallel_for
examples schedulling work for execution on GPUs? So far, I have found these three examples: https://github.com/oneapi-src/oneAPI-samples/tree/master/Libraries/oneTBB. But I cannot say I find it easy and straightforward to run code on GPUs. Thank you for your help!The text was updated successfully, but these errors were encountered: