Run function on GPU, Matlab 2011a
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I saw that one can run matlab function on the GPU in Matlab 2011a. In the introductory video they run the function phaseangle(gx,gy), where gx and gy are matrices on the GPU, then these can be speed up by using arrayfun(@phaseangle, gx, gy). which implies that the function phaseangle is run for each element in gx and gy
Now, I not only have a function(x,y) with two input arguments, but I have a function with arguments function(x,y, parameter). Can I somehow run this on the GPU as I can build matrices for my arguments x,y but parameter is supposed to be the same for all x,y.... Thanks a lot.
0 件のコメント
採用された回答
John Melonakos
2011 年 7 月 24 日
Jacket's GCOMPILE/ARRAYFUN functions will get you what you want. Check it out here: http://wiki.accelereyes.com/wiki/index.php/GCOMPILE_Usage
0 件のコメント
その他の回答 (1 件)
Edric Ellis
2011 年 7 月 6 日
Yes, you can do that. The GPU variant of arrayfun has been slightly expanded from the standard MATLAB version to allow scalar expansion. This is mentioned in the doc:
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!