简体   繁体   English

通过网络或GPU增强Threadpool

[英]Boost Threadpool with network or GPU

I'm using a thread group like shown here Boost group_threads Maximal number of parallel thread 我正在使用如下所示的线程组Boost group_threads并行线程的最大数量

My program does depth graph search which takes really long. 我的程序进行深度图搜索,这需要很长时间。 Because that i want to speed up. 因为那我想加快速度。 I thought about connection other Computers over network or using my GPU. 我考虑过通过网络或使用我的GPU连接其他计算机。

So it is possible to start threads on other computers over network(of course they have to run client) or to use the own GPU 因此可以通过网络在其他计算机上启动线程(当然,它们必须运行客户端)或使用自己的GPU

Does boost thread support something like this? Boost线程支持这样的东西吗?

boost thread does not support this exactly. Boost线程不完全支持此功能。 Boost threads are specific to a given process. Boost线程特定于给定的进程。

For the multi-machine case, you would need to communicate between the machines over the network. 对于多机情况,您将需要通过网络在机器之间进行通信。 You could use boost asio sockets or boost MPI for this. 您可以为此使用boost asio套接字或boost MPI。

For the GPU case, you would have to write code specifically to execute on the GPU which is an in-depth subject. 对于GPU情况,您将必须专门编写代码以在GPU上执行,这是一个深入的主题。

You could also take a look at OpenCL which may be a better fit for your purpose. 您也可以看看OpenCL,它可能更适合您的目的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM