Perfect, thanks


On Sun, Apr 28, 2013 at 12:26 PM, Andreas Kloeckner <lists@informa.tiker.net> wrote:
Dear Mr. Maze,

"Mr. Maze" <void@madmaze.net> writes:
> I am currently working on an application where I need to retrieve the index
> of the max value.
> Is there a way to get the index along with the max of a gpuarray?
>
> At the moment I am returning the array back to the host just to locate
> where the max value is.

you should be able to adapt this code here:

https://github.com/inducer/pycuda/blob/master/test/test_gpuarray.py#L780

to not collect min and max but max and max-index.

HTH,
Andreas