GPU implementation of Min function

5 ビュー (過去 30 日間)
Sarah
Sarah 2011 年 6 月 7 日
I have a 2D array and I want to find the minimum value along each row (i.e dimension 2). This is part of a larger function which I am implementing on a GPU so I would like to do this on the GPU as well. However the implementation of the min function will only perform a bitwise comparison of two arrays. Does any one have any suggestions of how I could do this without gathering the array back to the CPU?
Thanks for your help, Sarah
PS I don't know if this possible in Jacket but I don't have it or finances to buy it

回答 (3 件)

Ben Tordoff
Ben Tordoff 2011 年 6 月 10 日
Hi Sarah, if your MATLAB license is up to date you might like to have a look at the pre-release of R2011b which has just become available. This includes a number of updates to the GPU features which you might find useful.
It can be downloaded by logging in to the main www.mathworks.com page. After logging in, click on "My Account" at the top right of the page, then "Download R2011b Prerelease" from the "Account services" section.

Ben Tordoff
Ben Tordoff 2012 年 4 月 24 日
All syntaxes for MIN and MAX are supported in Parallel Computing Toolbox starting in release R2011b.

John Melonakos
John Melonakos 2011 年 6 月 11 日
Sarah, while you're not in a position to purchase Jacket right now, I thought I'd go ahead and let you know that this function is indeed supported in Jacket and is one of the one's that we've worked on really hard to improve. Hopefully that will help you eventually :)

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by