Allan Haldane
Allan Haldane
stack-trace: ``` File "/usr/home/p/605/tuf33565/anaconda2/lib/python2.7/site-packages/pyopencl/__init__.py", line 320, in __getattr__ knl = Kernel(self, attr) File "/usr/home/p/605/tuf33565/anaconda2/lib/python2.7/site-packages/pyopencl/cffi_cl.py", line 1690, in __init__ self._setup(program) File "/usr/home/p/605/tuf33565/anaconda2/lib/python2.7/site-packages/pyopencl/cffi_cl.py", line 1700, in _setup work_around_arg_count_bug=None) File "/usr/home/p/605/tuf33565/anaconda2/lib/python2.7/site-packages/pyopencl/invoker.py", line 388,...
No hurry at all - I've fixed it on my system so I'm happy, just wanted to let you know about the idea. I'm also pretty busy but a patch...
Thanks @pv, I made some small corrections. I need to read and think about the proper behavior for the unstructured types and aligned structured types. It seems to me the...
Ah, see on the python bug tracker [struct.pack(): trailing padding bytes on x64](https://bugs.python.org/issue26746) last changed 2016-05-10 [implement PEP 3118 struct changes](https://bugs.python.org/issue3132) last changed 2016-04-13
After reading, I think numpy's current interpretation of trailing padding in pep3118 format strings is wrong. The struct module is [pretty clear](https://docs.python.org/2/library/struct.html#byte-order-size-and-alignment) about how format strings treat trailing padding: >...
All right, the story gets more complicated. While the struct module does not add C-style trailing bytes to unstructured aligned data, the memoryview function does within `T{}`: ``` >>> arr...
Yeah I sort of forgot about this because it was so messy. As I recall I think the current state of this PR is a pretty good approximation of how...
Rebased. As a reminder, this PR fixes the PEP3118 trailing padding, which was not accounted for at all before when converting an `array->memoryview`. Importantly, I now interpret `ix` format as...
Here are two more things we might want to think more about: 1. Currently, although the format string numpy produces from an array works properly, is perhaps a bit ugly....
I expect `T{ix}` is 5 bytes. However I currently do not know of any way (in python) to create a memoryview with that format. It *is* possible to create a...