You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[hipCUB] Update caching device allocator unit test to be more
reliable (#6758)
## Motivation
The current hipCUB test_caching_device_allocator test was taken from
upstream CUB's corresponding test_allocator.cu. Since then the upstream
CUB test has been updated to be more reliable
(NVIDIA/cccl#5899) but this improvement was not
ported over to hipCUB.
It is possible that the hipCUB test is flaking out at
ROCm/rocm-libraries#6689. This PR hopes to
address any inherent flakiness with the test.
It's possible this change also allows the test to be run under Valgrind
and ASAN; however that is an investigation for another day. I don't want
to delay this PR as it blocking TheRock.
## Technical Details
Borrowing from upstream CUB's solution - implement a mechanism which
launches a kernel which blocks on the device until released. This allows
the test to run deterministically and not rely on a certain luck factor
to succeed.
## Test Plan
Run the test 1000 times on gfx942 in Linux.
## Test Result
All the tests passed.
## Submission Checklist
- [ ] Look over the contributing guidelines at
https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
0 commit comments