numo-narray icon indicating copy to clipboard operation
numo-narray copied to clipboard

SIMD support

Open bkmgit opened this issue 2 years ago • 2 comments

Would it be of interest to add SIMD support? For example Numpy uses https://github.com/mathlibrary/usimd

bkmgit avatar Feb 16 '22 06:02 bkmgit

numo-narray also already has SIMD support. https://github.com/ruby-numo/numo-narray/pull/111

naitoh avatar Feb 19 '22 05:02 naitoh

Thanks. This adds SSE instructions. However, AVX, neon and possibly SVE instructions may also be helpful:

  • https://github.com/gcc-mirror/gcc/blob/master/gcc/config/aarch64
  • https://github.com/gcc-mirror/gcc/tree/master/gcc/config/i386

Further conditional compilation options could be used

bkmgit avatar Feb 20 '22 05:02 bkmgit

It would be nice to have AltiVec as well, but presently the core doesn’t even compile: https://github.com/ruby-numo/numo-narray/issues/215

barracuda156 avatar Jun 03 '24 08:06 barracuda156