From d64a353ea08b750b2303e56ef34eb07310629e8d Mon Sep 17 00:00:00 2001 From: Xiaomeng Hou Date: Wed, 29 Sep 2021 16:50:00 +0800 Subject: [PATCH] Adjust the passing value for GPU agent when do max single allocation test For APU asics, the default configuration size of video memory is relatively small, plus the reserved region, ratio of max alloc size to the pool size may below the expected value, so adjust it. Change-Id: I798b44d9532aa6a381a1cc19faa5a46110bf0ad6 [ROCm/ROCR-Runtime commit: df59bfd57b978cfba372a9239fcfbc7822e90954] --- projects/rocr-runtime/rocrtst/suites/functional/memory_basic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/rocrtst/suites/functional/memory_basic.cc b/projects/rocr-runtime/rocrtst/suites/functional/memory_basic.cc index 25ef328153..3de8d9c44b 100755 --- a/projects/rocr-runtime/rocrtst/suites/functional/memory_basic.cc +++ b/projects/rocr-runtime/rocrtst/suites/functional/memory_basic.cc @@ -233,7 +233,7 @@ void MemoryTest::MaxSingleAllocationTest(hsa_agent_t ag, } if (ag_type == HSA_DEVICE_TYPE_GPU) { - EXPECT_GE((float)max_alloc_size/pool_sz, (float)15/16); + EXPECT_GE((float)max_alloc_size/pool_sz, (float)7/8); } if (verbosity() > 0) { std::cout << kSubTestSeparator << std::endl;