Skip to content

Commit 1bfc047

Browse files
committed
fix(onnxruntime): enable WASM threading to fix MLFloat16 build errors
- Add --enable_wasm_threads to ONNX Runtime build flags - Fixes MLFloat16 missing methods (Negate, IsNegative, FromBits) - Threading is safe for Node.js-only usage (no browser CORS concerns) - Aligns with ONNX Runtime's recommended build path - Resolves issue microsoft/onnxruntime#23769
1 parent 6c23c2e commit 1bfc047

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/onnxruntime/scripts/build.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ async function build() {
145145
'--build_wasm',
146146
'--skip_tests',
147147
'--parallel',
148+
'--enable_wasm_threads',
148149
'--cmake_extra_defines', 'onnxruntime_EMSCRIPTEN_SETTINGS=WASM_ASYNC_COMPILATION=0',
149150
], {
150151
cwd: ONNX_SOURCE_DIR,

0 commit comments

Comments
 (0)