Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Intel TBB and Xeon Phi

Anwar_Ludin
Beginner
419 Views

Hello,

I was trying to find examples of how to use Intel TBB on the Xeon Phi and the only resource I've managed to get hold of is the following faq: http://threadingbuildingblocks.org/faq/26

- What I would like to have is code samples showing:
-- Initializing TBB on the host and launching several parallel tasks on the Xeon Phi.
-- Same thing for parallel_reduce

Thanks a lot!

0 Kudos
3 Replies
Vladimir_P_1234567890
419 Views

Hello Anwar,

You can start from 'primes' example in the package. As far as I can see the example does have offload support.

--Vladimir

P.S. update 'does not have' -> 'does have'

0 Kudos
Alexei_K_Intel
Employee
419 Views

Hello Anwar,

I'd like to suggest you starting from the "GettingStarted/sub_string_finder" since it provides a bit more comments and uses a special compiler switch for offload diagnostics during compilation which can be interesed for you.

Also you can find some information in "Intel® Xeon Phi™ Coprocessor Developer's Quick Start Guide" in the chapter "Parallel Programming on Intel® Xeon Phi™ Coprocessor: Intel® Threading Building Blocks (Intel® TBB)". The guide is available on http://software.intel.com/mic-developer under "Overview" tab.

Thanks, Alex

0 Kudos
Anwar_Ludin
Beginner
419 Views

Alexei, Vladimir,

Thanks guys for pointing me in the right direction...will play around with the examples and read the docs!

Regards,

Anwar

0 Kudos
Reply