Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASM relaxed SIMD support #389

Open
robertknight opened this issue Oct 18, 2024 · 1 comment
Open

WASM relaxed SIMD support #389

robertknight opened this issue Oct 18, 2024 · 1 comment

Comments

@robertknight
Copy link
Owner

robertknight commented Oct 18, 2024

The WASM Relaxed SIMD instructions were stabilized in Rust v1.82.

This includes several instructions which should have a significant impact on performance if used in matrix multiplication kernels:

  1. f32x4_relaxed_madd for f32 kernels.
  2. i32x4_relaxed_dot_i8x16_i7x16_add for int8 kernels. In the best case scenario this gets compiled to AVX VNNI or Arm SDOT

Attempting to use these instructions currently causes wasm-bindgen to fail because the feature is not supported in walrus.

@robertknight
Copy link
Owner Author

See also rustwasm/wasm-bindgen#4263.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant