From 91cc779531d0c55b2c6cdb53410701c7933c5c2d Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Tue, 19 Dec 2023 11:09:56 -0800 Subject: [PATCH] update --- onnxruntime/core/framework/session_options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/framework/session_options.h b/onnxruntime/core/framework/session_options.h index 77aef1d18c091..736fb81cde338 100644 --- a/onnxruntime/core/framework/session_options.h +++ b/onnxruntime/core/framework/session_options.h @@ -129,7 +129,7 @@ struct SessionOptions { // By default the session uses its own set of threadpools, unless this is set to false. // Use this in conjunction with the CreateEnvWithGlobalThreadPools API. -#if defined(__wasm__) +#if defined(__wasm__) && defined(__EMSCRIPTEN_PTHREADS__) bool use_per_session_threads = false; #else bool use_per_session_threads = true;