Skip to content

[RFC] webassembly simd as new dedicated target #5902

@nihui

Description

pros

  • wasm as a first-class citizen
  • avoid any slow emulation of sse2 intrinsics
  • brings native i8 mul long and i16-dp
  • brings fmadd and i8-u7-dp with relaxed-simd, which is crucial for neural network inference
  • v8 implement fp16 functions

cons

  • new target with LOTS OF optimization code

to be investigated

resources

llvm wasm simd header
https://github.com/llvm/llvm-project/blob/main/clang/lib/Headers/wasm_simd128.h

simd
https://github.com/WebAssembly/simd/blob/main/proposals/simd/SIMD.md

relaxed-simd
https://github.com/WebAssembly/relaxed-simd/blob/main/proposals/relaxed-simd/Overview.md

half-precision
https://github.com/WebAssembly/half-precision/blob/main/proposals/half-precision/Overview.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions