diff --git a/src/config.h b/src/config.h index 77e84fafc..4a14cdd6e 100644 --- a/src/config.h +++ b/src/config.h @@ -40,7 +40,9 @@ struct Config { std::optional log_id; std::optional log_severity_level; std::optional enable_profiling; - bool use_env_allocators{true}; + // TODO(baijumeswani): Sharing env allocators across sessions leads to crashes on windows and iOS. + // Identify the reason for the crash to enable allocator sharing by default. + bool use_env_allocators{false}; std::vector provider_options; }; @@ -168,4 +170,4 @@ void SetSearchNumber(Config::Search& search, std::string_view name, double value void SetSearchBool(Config::Search& search, std::string_view name, bool value); bool IsCudaGraphEnabled(Config::SessionOptions& session_options); -} // namespace Generators \ No newline at end of file +} // namespace Generators