File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,12 @@ function(AddTest)
229229 list (APPEND TEST_NODE_FLAGS "--experimental-wasm-simd" )
230230 endif ()
231231
232+ if (onnxruntime_ENABLE_WEBASSEMBLY_RELAXED_SIMD)
233+ message (WARNING "Use system `node` to test Wasm relaxed SIMD. Please make sure to install node v21 or newer." )
234+ set (NODE_EXECUTABLE node)
235+ set (TEST_NODE_FLAGS)
232236 # prefer Node from emsdk so the version is more deterministic
233- if (DEFINED ENV{EMSDK_NODE})
237+ elseif (DEFINED ENV{EMSDK_NODE})
234238 set (NODE_EXECUTABLE $ENV{EMSDK_NODE} )
235239 else ()
236240 # warning as we don't know what node version is being used and whether things like the TEST_NODE_FLAGS
Original file line number Diff line number Diff line change @@ -305,6 +305,10 @@ function parseWasmFlags(args: minimist.ParsedArgs): Env.WebAssemblyFlags {
305305 if ( typeof simd !== 'undefined' && typeof simd !== 'boolean' ) {
306306 throw new Error ( 'Flag "wasm.simd"/"wasm-enable-simd" must be a boolean value' ) ;
307307 }
308+ const relaxedSimd = ( wasm . relaxedSimd = parseBooleanArg ( wasm . relaxedSimd ) ) ;
309+ if ( typeof relaxedSimd !== 'undefined' && typeof relaxedSimd !== 'boolean' ) {
310+ throw new Error ( 'Flag "wasm.relaxedSimd" must be a boolean value' ) ;
311+ }
308312 const proxy = ( wasm . proxy = parseBooleanArg ( wasm . proxy ?? args [ 'wasm-enable-proxy' ] ) ) ;
309313 if ( typeof proxy !== 'undefined' && typeof proxy !== 'boolean' ) {
310314 throw new Error ( 'Flag "wasm.proxy"/"wasm-enable-proxy" must be a boolean value' ) ;
You can’t perform that action at this time.
0 commit comments