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

        krnl = get_subset_minmax_kernel(a.context, what, a.dtype, subset.dtype)
        return krnl(subset, a, queue=queue)
Example #3
0
 def f(subset, a, queue=None):
     from pyopencl.reduction import get_subset_minmax_kernel
     krnl = get_subset_minmax_kernel(a.context, what, a.dtype, subset.dtype)
     return krnl(subset, a, queue=queue)
Example #4
0
 def f(subset, a, queue=None):
     from pyopencl.reduction import get_subset_minmax_kernel
     import pyopencl.reduction
     krnl = get_subset_minmax_kernel(what, a.dtype)
     return krnl(subset, a,  queue=queue)