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

[js/web] Add Wasm Relaxed SIMD support to wasm backend #22794

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jing-bao
Copy link

Description

Add Wasm Relaxed SIMD support.
Use integer dot product instructions for QGemmU8X8.

  1. Build with --enable_wasm_relaxed_simd
  2. Use env.wasm.relaxedSimd to run it

Motivation and Context

#22533

Build with --enable_wasm_relaxed_simd.
A trick here is to rename mjs file like:
cp ../../../build_wasm/Release/ort-wasm-relaxedsimd-threaded.mjs ./ort-wasm-simd-threaded.mjs
cp ../../../build_wasm/Release/ort-wasm-relaxedsimd-threaded.wasm .
Now we don't need the file renaming trick.
unittest for relaxed SIMD needs node v21 or newer.
Add wasm.relaxedSimd to test-runner-cli-args
@jing-bao jing-bao requested a review from a team as a code owner November 11, 2024 06:04
@jing-bao
Copy link
Author

Hi, @fs-eire , would you please take a look?
I haven't modified the CI pipeline file yet, just locally pass the unit tests and "npm test". If acceptable, I can add them in a new PR.
Also, clang-format will modify many mlas files aside from my added cpp file, so I'm not sure if I need to run that. Maybe you can give me some hints on the file formatting.

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

Successfully merging this pull request may close these issues.

1 participant