예제 #1
0
파일: array.py 프로젝트: stefanv/PyOpenCL
 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)
예제 #2
0
파일: array.py 프로젝트: EyNuel/pyopencl
    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)
예제 #3
0
파일: array.py 프로젝트: sys-git/pyopencl
 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)
예제 #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)