singlestore-wasm-toolkit icon indicating copy to clipboard operation
singlestore-wasm-toolkit copied to clipboard

Create a SIMD example

Open ricochet opened this issue 3 years ago • 1 comments

Fixed SIMD is enabled by default in the wasmtime runtime.

A very straightforward example with few dependencies is desired before adding a more complex real-world use-case. For example multiply_arrays from https://v8.dev/features/simd might be a good place to start.

Some more interesting examples beyond neural networks could include:

  • https://github.com/intel/hyperscan (C++)
  • https://github.com/ermig1979/Simd/blob/master/src/Use/UseFaceDetection.cpp
  • https://github.com/SnellerInc/sneller (golang)
  • https://github.com/minio/sha256-simd (golang)
  • https://github.com/echamudi/opencv-wasm

ricochet avatar Jun 08 '22 17:06 ricochet

It looks like Rust's core library has wasm32-specific SIMD support that we should be able to utilize if we want to handwrite something. I'm going to dig a bit and see if I can find a project already out there using it that would make sense.

esoterra avatar Jun 08 '22 21:06 esoterra