未验证 提交 14658d8f 编写于 作者: H Huihuang Zheng 提交者: GitHub

Fix buddy allocator random CI failure (#38545)

Fix Buddy Allocator random CI failure due to machine environment.
上级 9d5b665c
......@@ -95,10 +95,10 @@ TEST(BuddyAllocator, GpuFraction) {
// Less than pool size
TestBuddyAllocator(&buddy_allocator, 10);
TestBuddyAllocator(&buddy_allocator, 10 << 10);
TestBuddyAllocator(&buddy_allocator, 10 << 20);
TestBuddyAllocator(&buddy_allocator, 1 << 20);
// Greater than max chunk size
TestBuddyAllocator(&buddy_allocator, 300 << 20,
TestBuddyAllocator(&buddy_allocator, 500 << 20,
/* use_system_allocator = */ true);
TestBuddyAllocator(&buddy_allocator, 1 * static_cast<size_t>(1 << 30),
/* use_system_allocator = */ true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册