zeratax / yacx

Yet Another CudaExecutor - wrapper to easily compile and execute cuda kernels
https://zeratax.github.io/yacx
MIT License
8 stars 4 forks source link

Exceptions in Destructors lead to crashes #12

Closed hadis1000 closed 4 years ago

hadis1000 commented 5 years ago

See usage of NVRTC_SAFE_CALL

Exceptions should never leave the destructor of an object.

zeratax commented 5 years ago

ja schon klar, aber weiß nicht wie man ansonsten damit ungehen soll? also garnicht erst diese funktionen da benutzen oder einfach nur loggen? weil würde ja schon gerne wissen ob da was schief läuft

zeratax commented 4 years ago

more or less fixed with https://github.com/ZerataX/cudacompiler/commit/b5066686b7e0478b5804a91480999ca685b398a3 currently it just doesn't check for an error, but probably later should again, just not with an exception