Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 226
Shubhang Periwal Avatar asked May 30 '26 11:05

Shubhang Periwal


1 Answers

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

like image 64
ntfs.hard Avatar answered Jun 02 '26 15:06

ntfs.hard