Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
allnes committed Sep 20, 2023
1 parent f0b3688 commit 2b536a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/intel_cpu/src/nodes/executors/acl/acl_eltwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ namespace intel_cpu {

using namespace arm_compute;

static std::mutex mtx_ifunc;
static std::mutex & get_mtx_ifunc() {
static std::mutex mtx_ifunc;
return mtx_ifunc;
}

inline VectorDims reshape_sizes(VectorDims dims) {
const size_t MAX_NUM_SHAPE = arm_compute::MAX_DIMS;
Expand Down Expand Up @@ -496,7 +499,7 @@ bool AclEltwiseExecutor::init(const EltwiseAttrs &eltwiseAttrs, const std::vecto
default:
IE_THROW() << "Unsupported operation type for ACL Eltwise executor: " << static_cast<int>(aclEltwiseAttrs.algorithm);
}
std::lock_guard<std::mutex> _lock {mtx_ifunc};
std::lock_guard<std::mutex> _lock {get_mtx_ifunc()};
ifunc = exec_func();
return true;
}
Expand Down

0 comments on commit 2b536a7

Please sign in to comment.