From 3ee8f2c6cfe6251734d1fde3b0cb7ec2fe351fd9 Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Tue, 9 Oct 2018 23:08:46 +0800 Subject: [PATCH] thread local jit kernels test=develop --- paddle/fluid/operators/math/jit_kernel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/math/jit_kernel.cc b/paddle/fluid/operators/math/jit_kernel.cc index 54292cd7102..68b708b3453 100644 --- a/paddle/fluid/operators/math/jit_kernel.cc +++ b/paddle/fluid/operators/math/jit_kernel.cc @@ -24,7 +24,7 @@ namespace jitkernel { namespace jit = platform::jit; KernelPool& KernelPool::Instance() { - static KernelPool g_jit_kernels; + static thread_local KernelPool g_jit_kernels; return g_jit_kernels; } -- GitLab