MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / reportAssertion

Function reportAssertion

plugin/common/checkMacrosPlugin.cpp:130–148  ·  view source on GitHub ↗

break-pointable

Source from the content-addressed store, hash-verified

128
129// break-pointable
130void 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
150void TRTException::log(std::ostream& logStream) const
151{

Callers

nothing calls this directly

Calls 3

getPluginLoggerFunction · 0.85
c_strMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected