eyalroz / cuda-api-wrappers

Thin, unified, C++-flavored wrappers for the CUDA APIs
BSD 3-Clause "New" or "Revised" License
790 stars 80 forks source link

Support creation of CUDA runtime error exceptions with fully-overriden what() messages #511

Closed eyalroz closed 1 year ago

eyalroz commented 1 year ago

At the moment, when constructing a CUDA runtime error (or RTC runtime error), one can specify a string to use in the what() method, but that string is always suffixed by : Description of status code. Sometimes we may not wish to present this suffix, since the string is explanation enough. Let's allow constructing runtime errors that way.