Skip to content

Commit 3ee8f2c

Browse files
committed
thread local jit kernels
test=develop
1 parent 9131a35 commit 3ee8f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/math/jit_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace jitkernel {
2424
namespace jit = platform::jit;
2525

2626
KernelPool& KernelPool::Instance() {
27-
static KernelPool g_jit_kernels;
27+
static thread_local KernelPool g_jit_kernels;
2828
return g_jit_kernels;
2929
}
3030

0 commit comments

Comments
 (0)