Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MKL DNN: Fix allocation ID for MKL #20035

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ TEST(DirectSessionWithTrackingAllocTest, CostModelTest) {
// and deallocated. Each allocation calls the
// (FindChunkPtr of BFCAllocator),
// which increments the value of AllocationId.
// Thus AllocationId becomes more than 3 and 4 if
// MKL is used. Now they are 9 and 10 for MKL.
EXPECT_EQ(19, cm->AllocationId(node, 0));
// Thus AllocationId becomes more than TF if MKL
// is used. Now IDs for MKL are 8 more than TF.
EXPECT_EQ(29, cm->AllocationId(node, 0));
#else
EXPECT_EQ(21, cm->AllocationId(node, 0));
#endif
} else {
#ifdef INTEL_MKL
EXPECT_EQ(20, cm->AllocationId(node, 0));
EXPECT_EQ(30, cm->AllocationId(node, 0));
#else
EXPECT_EQ(22, cm->AllocationId(node, 0));
#endif
Expand Down