| 1611 | } |
| 1612 | |
| 1613 | void* initConsistencyCheckerLibrary() |
| 1614 | { |
| 1615 | void* handle{nullptr}; |
| 1616 | #if !defined(_WIN32) |
| 1617 | std::string const dllName{samplesCommon::isDebug() ? "libnvinfer_checker_debug.so.8" : "libnvinfer_checker.so.8"}; |
| 1618 | #if SANITIZER_BUILD |
| 1619 | handle = dlopen(dllName.c_str(), RTLD_LAZY | RTLD_NODELETE); |
| 1620 | #else |
| 1621 | handle = dlopen(dllName.c_str(), RTLD_LAZY); |
| 1622 | #endif |
| 1623 | #endif |
| 1624 | return handle; |
| 1625 | } |
| 1626 | |
| 1627 | #if !defined(_WIN32) |
| 1628 | struct DllDeleter |
no test coverage detected