Skip to content

Commit

Permalink
Navi32 multiVF failing test (#269) (#274)
Browse files Browse the repository at this point in the history
* Fix test device radix sort

* Add line
  • Loading branch information
RobsonRLemos authored Jul 31, 2023
1 parent 85113b9 commit 7cd46b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/hipcub/test_hipcub_device_radix_sort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(dev_prop.totalGlobalMem * 0.9) < size * 2 * sizeof(key_type))
{
GTEST_SKIP() << "insufficient global memory";
}
Expand Down

0 comments on commit 7cd46b6

Please sign in to comment.