Parallelizing MATLAB code using many GPU cores
9 ビュー (過去 30 日間)
古いコメントを表示
I have a MATLAB script that runs many independent iterations (for loop), of the form
for idx=1:N
result(idx) = some_procedure(data(idx));
end
I have a NVIDIA graphics card with over 3000 CUDA cores. Is it possible to parallelize the code, such that e.g. each GPU core handles one iteration? I understood that parfor is not the answer here but is there some equivalent?
0 件のコメント
採用された回答
Joss Knight
2018 年 8 月 31 日
GPU cores do not work like CPU cores. They cannot run independent tasks.
10 件のコメント
Joss Knight
2020 年 4 月 25 日
You should look elsewhere for further performance improvements. MATLAB has no half datatype, and sparse only supports 2-D matrices so cannot be used for batch operations, not that it would be useful anyway since sparse only makes sense for large matrices.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で GPU Computing in MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!