GPUを使用したDeepLearningの並列処理に関する質問
2 次查看(过去 30 天)
显示 更早的评论
現在,GPU(GeForce 1080-Ti)を使用したCNNによる解析を行っています.1枚のGPUで動作させていますが,高速処理のため,複数枚数(2枚以上)のGPUを考えています.どのような仕様(また,環境下)であれば,CNNの複数GPUを用いた処理が可能でしょうか.以下の環境下で動かしたいと考えています.
・Windows10環境下 ・GPU(GeForce 1080-Ti)×2枚 ・Parallel Computing Toolboxは利用可能
0 个评论
采纳的回答
michio
2017-7-7
具体的な実行方法としては下記が参考になるかと思います。
4 个评论
Joss Knight
2017-7-11
Many apologies, I should have noticed they were links! (They weren't links in Google translate of course...)
更多回答(1 个)
Joss Knight
2017-7-6
编辑:Joss Knight
2017-7-6
MATLAB CNNs support any modern multi-gpu environment and it's difficult to advise. Amazon and Azure provide cloud environments of 8 and 16 Tesla K80 GPUs, while the typical 'multi-gpu system in a box' retail system would allow you to put together 4 or 8 GeForce GPUs (1080 or Titan X) and that would be equally useful for Deep Learning. If you just want to try it out, put another 1080i in your desktop, if your PCI bus can take another.
There are two bits of advice I can usefully give. Firstly, avoid setting up your multi-gpu cluster under Windows, because MATLAB's cluster model is multi-process not multi-threaded. Multi-process scales better to multiple machines, but it prevents peer-to-peer communication between GPUs on Windows, since P2P inter-process communication in CUDA is only supported on Linux (for now). It's worth pointing out that you can still use MATLAB under Windows as your client while the cluster runs under Linux.
Secondly, try to put as many GPUs as possible on the PCI bus of one machine, rather than dividing them between multiple machines. Again, this is because of peer-to-peer communication, which is essential for fast training of deep networks. Communicating between nodes on a multi-node cluster is much slower than peer communication between GPUs on the same PCI bus.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel and Cloud 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!