break-pointable
| 128 | |
| 129 | // break-pointable |
| 130 | void reportAssertion(char const* msg, char const* file, int32_t line) |
| 131 | { |
| 132 | std::ostringstream stream; |
| 133 | stream << "Assertion failed: " << msg << "\n" |
| 134 | << file << ':' << line << "\n" |
| 135 | << "Aborting..." |
| 136 | << "\n"; |
| 137 | #ifdef COMPILE_VFC_PLUGIN |
| 138 | ILogger* logger = getPluginLogger(); |
| 139 | if (logger != nullptr) |
| 140 | { |
| 141 | logger->log(nvinfer1::ILogger::Severity::kINTERNAL_ERROR, stream.str().c_str()); |
| 142 | } |
| 143 | #else |
| 144 | getLogger()->log(nvinfer1::ILogger::Severity::kINTERNAL_ERROR, stream.str().c_str()); |
| 145 | #endif |
| 146 | PLUGIN_CUASSERT(cudaDeviceReset()); |
| 147 | abort(); |
| 148 | } |
| 149 | |
| 150 | void TRTException::log(std::ostream& logStream) const |
| 151 | { |
nothing calls this directly
no test coverage detected