[BUG]: single_device_tls_caching_allocator
doesn't free memory on failed allocation
#4222
Open
1 task done
Labels
bug
Something isn't working right.
Is this a duplicate?
Type of Bug
Runtime Error
Component
Thrust
Describe the bug
Users have to workaround an issue in
thrust::detail::single_device_tls_caching_allocator
by reaching into detail namespace to release unused memory upon failed allocation. Without a try-catch block, the following code fails:How to Reproduce
Remove try catch in the code above.
Expected behavior
Unsuccessful
do_allocate
in disjoint_pool frees unused memory and attemps allocation again.Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: