Вопрос

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.

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top