can we execute thread building blocks threads on a Nvidia graphical processing unit? I want to have multiple threads for my tbb code so what should be optimum number for the same and can i use gpu threads instead of cpu threads?
Asked
Active
Viewed 783 times
2 Answers
2
TBB use threads provided by an operation system. If you want to use some kind of GPU accelerators you can try to use streaming_node (Documentation). It could help you to simplify using OpenCL(for example) for computation.
Streaming_node is a part of TBB Flow graph

Glorfindel
- 21,988
- 13
- 81
- 109

ntfs.hard
- 353
- 1
- 4
- 16
1
No, TBB is not supported for Nvidia GPUs. But CUDA and Thrust are. These provide a first-class programming environment, and Thrust provides easy-to-use parallel primitives, as does TBB.

All The Rage
- 743
- 5
- 24