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
…1827)
This PR addresses the following issues:
1. Closes [Issue 1791](#1791): It forwards on the details for why we got an OOM exception in `try_to_expand()`. It also does a more thorough job of forwarding on failure details in other locations. A test has been added to test this case explicitly.
2. Closes [Issue 1134](#1134): It adds the size of attempted allocations to the OOM and bad_alloc exceptions.
Notes:
1. These code paths are already tested by the numerous `EXPECT_THROW()` macros already in the tests, and one more test was explicitly added.
2. The modified loop in `try_to_expand()` in `pool_memory_resource.hpp` attempts to allocate for the case where `try_size` is less than `min_size`, whereas before it just immediately errored. If this isn't the behavior we want I can change it. Previously it was just erroring that we didn't have enough memory, which isn't right either.
Authors:
- Paul Mattione (https://github.com/pmattione-nvidia)
- Bradley Dice (https://github.com/bdice)
Approvers:
- Mark Harris (https://github.com/harrism)
- Alessandro Bellina (https://github.com/abellina)
- Bradley Dice (https://github.com/bdice)
URL: #1827
It would be useful if
rmm::out_of_memory
exceptions could include the attempted allocation size that failed."Maximum pool size exceeded (failed to allocate X MiB)"
I am thinking it could just be in the
msg
, but perhaps it could be added as metadata in theout_of_memory
class? I am not entirely sure.ASYNC relevant code:
rmm/include/rmm/mr/device/detail/stream_ordered_memory_resource.hpp
Line 212 in 5e5d82b
ARENA relevant code:
rmm/include/rmm/mr/device/arena_memory_resource.hpp
Line 159 in 5e5d82b
The change should also include other allocators.
The text was updated successfully, but these errors were encountered: