LLNL / camp

Compiler agnostic metaprogramming library providing concepts, type operations and tuples for C++ and cuda
Other
79 stars 20 forks source link

Abort instead of throw #88

Open PhilipDeegan opened 3 years ago

PhilipDeegan commented 3 years ago

https://github.com/LLNL/camp/blob/b804898279379c5bb0ea76e2f26509ffeb72dd18/include/camp/defines.hpp#L204

RAJA provides a handy envar override "RAJA_NO_EXCEPT" to not throw but call abort instead.

This is useful for getting a stack trace of the exception case, would/could this be considered here?

trws commented 3 years ago

Sure, I wouldn't mind having that in camp. Any chance you have the time/inclination to put up a PR?

PhilipDeegan commented 3 years ago

sure, "CAMP_NO_EXCEPT" similarly for the env var string?

trws commented 3 years ago

Works for me!


From: @. @.> Sent: Tuesday, October 26, 2021 10:46 AM To: LLNL/camp @.> Cc: Scogland, Tom @.>; Comment @.***> Subject: Re: [LLNL/camp] Abort instead of throw (Issue #88)

sure, "CAMP_NO_EXCEPT" similarly for the env var string?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https://github.com/LLNL/camp/issues/88*issuecomment-952168997__;Iw!!G2kpM7uM-TzIFchu!jtZ9ffuP0DvDbDPIKZjUT7yrCMyyS4-GYUYF4_ZAr3YaSmkplSVUTV-BmxzYd5S-fw$, or unsubscribehttps://urldefense.us/v3/__https://github.com/notifications/unsubscribe-auth/AAFBFNNVFPBR54Z43XLM4OTUI3ZP7ANCNFSM5GU2NX7A__;!!G2kpM7uM-TzIFchu!jtZ9ffuP0DvDbDPIKZjUT7yrCMyyS4-GYUYF4_ZAr3YaSmkplSVUTV-Bmxw2vIk2GA$.