Getting index and value of the second highest element of CuArray

You can try partialsort!.

2 Likes