From 9382159d15461461260dabb9811d8c6dc439a2bb Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Fri, 26 Aug 2022 11:48:40 +0800 Subject: [PATCH] Modify PE Engine thread from 2 into 1 in JitLayer (#45356) --- paddle/fluid/jit/engine/pe_engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/jit/engine/pe_engine.cc b/paddle/fluid/jit/engine/pe_engine.cc index ddc2de0fc5..a2c6d69d16 100644 --- a/paddle/fluid/jit/engine/pe_engine.cc +++ b/paddle/fluid/jit/engine/pe_engine.cc @@ -31,7 +31,7 @@ static ExecutionStrategy GetExecutionStrategy(const platform::Place &place) { auto device_type = platform::Place2DeviceType(place); switch (device_type) { case platform::DeviceType::CPU: { - execution_strategy.num_threads_ = 2; + execution_strategy.num_threads_ = 1; break; } case platform::DeviceType::CUDA: { -- GitLab