loopy icon indicating copy to clipboard operation
loopy copied to clipboard

Execution targets don't support negative strides

Open inducer opened this issue 4 years ago • 2 comments
trafficstars

https://github.com/inducer/loopy/blob/3e687c78fb8f4701b2c117a17ec75be768eef2d1/loopy/target/c/c_execution.py#L85-L87

Negative strides are totally fine: np.arange(10)[::-1].strides -> (-8,)

inducer avatar Oct 18 '21 02:10 inducer

The pyopencl target doesn't seem to either.

https://github.com/inducer/loopy/blob/3e687c78fb8f4701b2c117a17ec75be768eef2d1/loopy/target/pyopencl_execution.py#L104-L106

alexfikl avatar Oct 18 '21 02:10 alexfikl

Huh, interesting.

inducer avatar Oct 18 '21 03:10 inducer