Skip to content

Fix/wasm compat tract rs#2001

Open
JulienBalianSonos wants to merge 2 commits intomainfrom
fix/wasm-compat-tract-rs
Open

Fix/wasm compat tract rs#2001
JulienBalianSonos wants to merge 2 commits intomainfrom
fix/wasm-compat-tract-rs

Conversation

@JulienBalianSonos
Copy link
Collaborator

@JulienBalianSonos JulienBalianSonos commented Feb 28, 2026

Features

  • Gate the cudars/tract-cuda to windows & linux device only
  • Gate the use of inventory (and put it in default), with alternative transform discovery so that common wasm bundler like wasm-pack and it's underling wasm-bindgen works.

Side Note

Inventory works in most wasm
If you build a .wasm including tract and load it:

  • In Chrome
  • In Wasmtime
  • In Wasmer
  • In WasmEdge

It will 'likely' work, because those engines:

  • Grow memory properly
  • Have proper stack discipline
  • Handle indirect calls correctly

But the wasm-bindgen interpreter is intentionally lightweight and crash on this task (despite being 'broadly' adopted).

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