Consider swallowing errors in deallocation functions
Open
thrust
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 486
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 295
Description
`thrust::system::cuda::free` potentially throws an exception, which can lead to multiple exceptions in flight when this function is called from a destructor. This makes it impossible to do correct exception handling.
We should avoid throwing in functions named `free` or catch and swallow exceptions in destructors. Not sure what the right thing to do is.
Contributor guide
Assessment
This issue has not been assessed yet.