[Numpy-discussion] Proposed change from POSIX to PyMem_RawXXX

2021-07-21 Thread Daniel Waddington
Hi, I'm working with Numpy in the context of supporting different memory types such as persistent memory and CXL attached.  I would like to propose a minor change, but figured I would get some initial feedback from the developer community before submitting a PR.   In multiarray/alloc.c the allocato

[Numpy-discussion] Adding POWER10 (VSX4) support to the SIMD framework

2021-07-21 Thread Nicholai Tukanov
I would like to understand how to go about extending the SIMD framework in order to add support for POWER10. Specifically, I would like to add the following instructions: `lxvp` and `stxvp` which loads/stores 256 bits into/from two vectors. I believe that this will be able to give a decent performa

Re: [Numpy-discussion] Add count (and dtype) to packbits

2021-07-21 Thread Neal Becker
Well that's just the point, I wanted to consider group size > 8. On Wed, Jul 21, 2021 at 8:53 AM Andras Deak wrote: > > On Wed, Jul 21, 2021 at 2:40 PM Neal Becker wrote: >> >> In my application I need to pack bits of a specified group size into >> integral values. >> Currently np.packbits only

Re: [Numpy-discussion] Add count (and dtype) to packbits

2021-07-21 Thread Andras Deak
On Wed, Jul 21, 2021 at 2:40 PM Neal Becker wrote: > In my application I need to pack bits of a specified group size into > integral values. > Currently np.packbits only packs into full bytes. > For example, I might have a string of bits encoded as a np.uint8 > vector with each uint8 item specify

[Numpy-discussion] Add count (and dtype) to packbits

2021-07-21 Thread Neal Becker
In my application I need to pack bits of a specified group size into integral values. Currently np.packbits only packs into full bytes. For example, I might have a string of bits encoded as a np.uint8 vector with each uint8 item specifying a single bit 1/0. I want to encode them 4 bits at a time i