Closed alexfikl closed 2 years ago
Allows passing np.float64 instead of a dtype to these functions. Most of the kernels (e.g. get_sum_kernel) assume they're getting a dtype, e.g.
np.float64
get_sum_kernel
https://github.com/inducer/pyopencl/blob/3abb137cb4dfe78637fd670d0657928d3cce2460/pyopencl/reduction.py#L529
Thanks, looks good. Add a test?
@inducer Added a little test for float values (and a lot of markers!).
float
Thanks!
Allows passing
np.float64
instead of a dtype to these functions. Most of the kernels (e.g.get_sum_kernel
) assume they're getting a dtype, e.g.https://github.com/inducer/pyopencl/blob/3abb137cb4dfe78637fd670d0657928d3cce2460/pyopencl/reduction.py#L529