From 14658d8f659a6c03ce9c5b1bdeb01cf69d7f800a Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Wed, 29 Dec 2021 14:33:17 +0800 Subject: [PATCH] Fix buddy allocator random CI failure (#38545) Fix Buddy Allocator random CI failure due to machine environment. --- paddle/fluid/memory/detail/buddy_allocator_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/memory/detail/buddy_allocator_test.cc b/paddle/fluid/memory/detail/buddy_allocator_test.cc index 4041c3cb93..a6b7f497ba 100644 --- a/paddle/fluid/memory/detail/buddy_allocator_test.cc +++ b/paddle/fluid/memory/detail/buddy_allocator_test.cc @@ -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(1 << 30), /* use_system_allocator = */ true); -- GitLab