loopy
loopy copied to clipboard
Execution targets don't support negative strides
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,)
The pyopencl target doesn't seem to either.
https://github.com/inducer/loopy/blob/3e687c78fb8f4701b2c117a17ec75be768eef2d1/loopy/target/pyopencl_execution.py#L104-L106
Huh, interesting.