fmincon を使った最適化処理を複数のGPU で並列処理することはできますか?
10 views (last 30 days)
Show older comments
MathWorks Support Team
on 9 Nov 2016
Edited: MathWorks Support Team
on 19 Mar 2021
Optimization Toolbox の fmincon の実行において、Parallel Computing Toolbox (PCT) を使って複数の GPU カードを使用して高速化することはできるか、教えてください。
Accepted Answer
MathWorks Support Team
on 19 Mar 2021
Edited: MathWorks Support Team
on 19 Mar 2021
fmincon のUseParallel オプションをtrueにするだけで、内部の勾配の計算が複数のGPUに割り振られます。ただし、高速化に繋がるかどうかは、目的関数内での計算量に依存します。
Optimization Toolbox 関数の並列計算
fminconのUseParallelは、内部的にparforが動いており、parpoolで複数のワーカーを起動すると、それぞれのワーカーは自動的に別々のGPUを使った処理を行います。
参考:Running Monte Carlo Simulations on Multiple GPUs
0 Comments
More Answers (0)
See Also
Categories
Find more on GPU 計算 in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!