Skip to content

Commit

Permalink
Revert "[CPU] Fix for CoreThreadingTestsWithIterations tests (openvin…
Browse files Browse the repository at this point in the history
…otoolkit#5892)"

This reverts commit 115aa14.
  • Loading branch information
yding10 committed Jun 4, 2021
1 parent a3b232a commit 95afa50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions inference-engine/src/mkldnn_plugin/mkldnn_weights_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ MKLDNNWeightsSharing::MKLDNNSharedMemory::Ptr MKLDNNWeightsSharing::findOrCreate
MKLDNNMemoryPtr newPtr;

if (found == sharedWeights.end()
|| !((ptr = found->second) && (newPtr = ptr->sharedMemory.lock()))) {
|| !(ptr = found->second)
|| ptr->sharedMemory.expired()) {
newPtr = create();
ptr = std::make_shared<MKLDNNMemoryInfo>(newPtr, valid);
sharedWeights[key] = ptr;
Expand All @@ -59,15 +60,15 @@ MKLDNNWeightsSharing::MKLDNNSharedMemory::Ptr MKLDNNWeightsSharing::get(const st
auto found = sharedWeights.find(key);

MKLDNNMemoryInfo::Ptr ptr;
MKLDNNMemoryPtr newPtr;

if (found == sharedWeights.end()
|| !((ptr = found->second) && (newPtr = ptr->sharedMemory.lock())))
|| !(ptr = found->second)
|| ptr->sharedMemory.expired())
IE_THROW() << "Unknown shared memory with key " << key;

return std::make_shared<MKLDNNSharedMemory>(ptr->valid
? std::unique_lock<std::mutex>(ptr->guard, std::defer_lock)
: std::unique_lock<std::mutex>(ptr->guard), ptr, newPtr);
: std::unique_lock<std::mutex>(ptr->guard), ptr);
}

NumaNodesWeights::NumaNodesWeights() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*BinaryConvolutionLayerTest.*)",
R"(.*ClampLayerTest.*netPrc=(I64|I32).*)",
R"(.*ClampLayerTest.*netPrc=U64.*)",
// TODO: 42538. Unexpected application crash
R"(.*CoreThreadingTestsWithIterations\.smoke_LoadNetwork.t.*)",
R"(.*CoreThreadingTestsWithIterations\.smoke_LoadNetworkAccuracy.*AUTO.*)",
// TODO: 53618. BF16 gemm ncsp convolution crash
R"(.*_GroupConv.*_inPRC=BF16.*_inFmts=nc.*_primitive=jit_gemm.*)",
// TODO: 53578. fork DW bf16 convolution does not support 3d cases yet
Expand Down

0 comments on commit 95afa50

Please sign in to comment.