Shubhang Periwal
Shubhang Periwal

Reputation: 31

thread building blocks and graphical processing unit

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?

Upvotes: 3

Views: 940

Answers (2)

ntfs.hard
ntfs.hard

Reputation: 353

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

Upvotes: 2

All The Rage
All The Rage

Reputation: 831

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.

Upvotes: 1

Related Questions