Skip to content

Commit 3951ee6

Browse files
added missing _Delete
1 parent 5bb48f2 commit 3951ee6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

backends/tests/test_sycl_queue_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ TEST_F (TestDPPLSyclQueueManager, CreateQueueFromDeviceAndContext)
258258
EXPECT_TRUE(DPPLContext_AreEq(C, C2));
259259

260260
DPPLQueue_Delete(Q2);
261+
DPPLQueue_Delete(Q);
261262
}
262263

263264
int

backends/tests/test_sycl_usm_interface.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ common_test_body(size_t nbytes, const DPPLSyclUSMRef Ptr,
7070
EXPECT_TRUE(DPPLDevice_AreEq(Dev, QueueDev));
7171

7272
DPPLQueue_Prefetch(Q, Ptr, nbytes);
73+
DPPLQueue_Delete(QueueDev);
74+
DPPLDevice_Delete(Dev);
7375
}
7476

7577
} // end of namespace
@@ -97,6 +99,7 @@ TEST_F(TestDPPLSyclUSMInterface, MallocShared)
9799

98100
common_test_body(nbytes, Ptr, Q, "shared");
99101
DPPLfree_with_queue(Ptr, Q);
102+
DPPLQueue_Delete(Q);
100103
}
101104

102105
TEST_F(TestDPPLSyclUSMInterface, MallocDevice)
@@ -112,6 +115,7 @@ TEST_F(TestDPPLSyclUSMInterface, MallocDevice)
112115

113116
common_test_body(nbytes, Ptr, Q, "device");
114117
DPPLfree_with_queue(Ptr, Q);
118+
DPPLQueue_Delete(Q);
115119
}
116120

117121
TEST_F(TestDPPLSyclUSMInterface, MallocHost)
@@ -127,6 +131,7 @@ TEST_F(TestDPPLSyclUSMInterface, MallocHost)
127131

128132
common_test_body(nbytes, Ptr, Q, "host");
129133
DPPLfree_with_queue(Ptr, Q);
134+
DPPLQueue_Delete(Q);
130135
}
131136

132137
TEST_F(TestDPPLSyclUSMInterface, AlignedAllocShared)
@@ -142,6 +147,7 @@ TEST_F(TestDPPLSyclUSMInterface, AlignedAllocShared)
142147

143148
common_test_body(nbytes, Ptr, Q, "shared");
144149
DPPLfree_with_queue(Ptr, Q);
150+
DPPLQueue_Delete(Q);
145151
}
146152

147153
TEST_F(TestDPPLSyclUSMInterface, AlignedAllocDevice)
@@ -157,6 +163,7 @@ TEST_F(TestDPPLSyclUSMInterface, AlignedAllocDevice)
157163

158164
common_test_body(nbytes, Ptr, Q, "device");
159165
DPPLfree_with_queue(Ptr, Q);
166+
DPPLQueue_Delete(Q);
160167
}
161168

162169
TEST_F(TestDPPLSyclUSMInterface, AlignedAllocHost)

0 commit comments

Comments
 (0)