ruby-numo / numo-narray

Ruby/Numo::NArray - New NArray class library
http://ruby-numo.github.io/narray/
BSD 3-Clause "New" or "Revised" License
413 stars 41 forks source link

SIMD support #205

Open bkmgit opened 2 years ago

bkmgit commented 2 years ago

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

naitoh commented 2 years ago

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

bkmgit commented 2 years ago

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

Further conditional compilation options could be used

barracuda156 commented 3 months ago

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