GPU implementation of Min function
5 views (last 30 days)
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
Ben Tordoff on 10 Jun 2011
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 on 24 Apr 2012
All syntaxes for MIN and MAX are supported in Parallel Computing Toolbox starting in release R2011b.
John Melonakos on 11 Jun 2011
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 :)