質問

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