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

Function initSafeRuntime

samples/common/sampleEngines.cpp:1599–1611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1597namespace
1598{
1599void* initSafeRuntime()
1600{
1601 void* handle{nullptr};
1602#if !defined(_WIN32)
1603 std::string const dllName{samplesCommon::isDebug() ? "libnvinfer_safe_debug.so.8" : "libnvinfer_safe.so.8"};
1604#if SANITIZER_BUILD
1605 handle = dlopen(dllName.c_str(), RTLD_LAZY | RTLD_NODELETE);
1606#else
1607 handle = dlopen(dllName.c_str(), RTLD_LAZY);
1608#endif
1609#endif
1610 return handle;
1611}
1612
1613void* initConsistencyCheckerLibrary()
1614{

Callers 1

sampleEngines.cppFile · 0.85

Calls 2

isDebugFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected