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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With