From 7cd46b6f3a0bf832b0afff824f7fce2dc32f2c1b Mon Sep 17 00:00:00 2001 From: Robson Lemos <31936621+RobsonRLemos@users.noreply.github.com> Date: Mon, 31 Jul 2023 14:28:44 -0600 Subject: [PATCH] Navi32 multiVF failing test (#269) (#274) * Fix test device radix sort * Add line --- test/hipcub/test_hipcub_device_radix_sort.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/hipcub/test_hipcub_device_radix_sort.hpp b/test/hipcub/test_hipcub_device_radix_sort.hpp index f5ca09bf..9bed61cd 100644 --- a/test/hipcub/test_hipcub_device_radix_sort.hpp +++ b/test/hipcub/test_hipcub_device_radix_sort.hpp @@ -613,9 +613,10 @@ inline void sort_keys_over_4g() hipDeviceProp_t dev_prop; HIP_CHECK(hipGetDeviceProperties(&dev_prop, device_id)); + // Radix sort requires 2 buffers of `size`, so a minimum of 8 GB of vram for this test. // This is more than some cards provide. - if(dev_prop.totalGlobalMem < size * 2 * sizeof(key_type)) + if(static_cast(dev_prop.totalGlobalMem * 0.9) < size * 2 * sizeof(key_type)) { GTEST_SKIP() << "insufficient global memory"; }