47 std::terminate_handler m_terminate_handler;
57 auto old_handler = m_terminate_handler;
58 m_terminate_handler = callback;
64 char const *
what() const noexcept {
return m_msg.c_str(); }
74template <
class F,
class... Args>
char const * what() const noexcept
auto get_terminate() noexcept
void terminate() noexcept
auto set_terminate(std::terminate_handler callback) noexcept
Wrapper for CUDA runtime exceptions.
cuda_runtime_error(std::string const &msg)
This file contains the defaults for ESPResSo.
void invoke_skip_cuda_exceptions(F &&f, Args &&...args)
Invoke a function and silently ignore any thrown cuda_runtime_error error.