NVIDIA / NVIDIA/cccl

Consider swallowing errors in deallocation functions

Open
#696 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.