argmin/argmax with PyOpenCL

501 views Asked by At

How would I write argmin or argmax with PyOpenCL? I figure I would need to calculate the argmin/min for each workgroup, and then reduce these using subsequent invocations.

1

There are 1 answers

0
Andreas Klöckner On BEST ANSWER

Adapt this to collect the minimum and its location rather than just the minimum.