| 1597 | namespace |
| 1598 | { |
| 1599 | void* 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 | |
| 1613 | void* initConsistencyCheckerLibrary() |
| 1614 | { |
no test coverage detected