Skip to content

Commit ed92914

Browse files
authored
Merge pull request #1159 from beomki-yeo/fix-array-wrapper-test
Free the memory properly in `array-wrapper-test`
1 parent eaf4dc6 commit ed92914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/cuda/test_array_wrapper.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ TEST(CUDAArrayWrapper, SoALayout) {
9191
cudaSuccess);
9292

9393
ASSERT_EQ(host_result, n);
94+
95+
ASSERT_EQ(cudaFree(dev_result), cudaSuccess);
9496
}
9597

9698
TEST(CUDAArrayWrapper, AoSLayout) {
@@ -124,4 +126,6 @@ TEST(CUDAArrayWrapper, AoSLayout) {
124126
cudaSuccess);
125127

126128
ASSERT_EQ(host_result, n);
129+
130+
ASSERT_EQ(cudaFree(dev_result), cudaSuccess);
127131
}

0 commit comments

Comments
 (0)