Example #1
0
 def f(a, queue=None):
     from pyopencl.reduction import get_minmax_kernel
     krnl = get_minmax_kernel(what, a.dtype)
     return krnl(a,  queue=queue)
Example #2
0
 def f(a, queue=None):
     from pyopencl.reduction import get_minmax_kernel
     krnl = get_minmax_kernel(a.context, what, a.dtype)
     return krnl(a, queue=queue)