Skip to content

Commit

Permalink
Fix a bug where the wrong API is used to free the memory (#2361)
Browse files Browse the repository at this point in the history
This PR fixes a bug uncovered by CCCL version bump #2358

Authors:
  - Yunsong Wang (https://github.com/PointKernel)

Approvers:
  - Ben Frederickson (https://github.com/benfred)

URL: #2361
  • Loading branch information
PointKernel authored Jun 13, 2024
1 parent 0e68cfa commit b66b269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/test/core/memory_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEST(MemoryTypeFromPointer, Host)
auto ptr1 = static_cast<void*>(nullptr);
cudaMallocHost(&ptr1, 1);
EXPECT_EQ(memory_type_from_pointer(ptr1), memory_type::host);
cudaFree(ptr1);
cudaFreeHost(ptr1);
auto ptr2 = static_cast<void*>(nullptr);
EXPECT_EQ(memory_type_from_pointer(ptr2), memory_type::host);
}
Expand Down

0 comments on commit b66b269

Please sign in to comment.