Skip to content

Commit fa056c1

Browse files
vstrt/win32.cpp: fix delay load
1 parent 5b8802c commit fa056c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vstrt/win32.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
#if NV_TENSORRT_VERSION >= 100001 || defined(TRT_MAJOR_RTX)
1616
#define TO_STRING(x) #x
1717
#define CONCAT_VERSION(name, version) (name "_" TO_STRING(version) ".dll")
18+
#define CONCAT_VERSION2(name, major, minor) (name "_" TO_STRING(major) "_" TO_STRING(minor) ".dll")
1819
#endif // NV_TENSORRT_VERSION >= 100001
1920

2021
namespace {
2122
std::vector<std::wstring> dlls = {
2223
// This list must be sorted by dependency.
2324
#if defined(TRT_MAJOR_RTX)
24-
L"tensorrt_rtx_" TO_STRING(TRT_MAJOR_RTX) "_" TO_STRING(TRT_MINOR_RTX) ".dll"
25+
CONCAT_VERSION2(L"tensorrt_rtx", TRT_MAJOR_RTX, TRT_MINOR_RTX),
2526
#elif NV_TENSORRT_VERSION >= 100001
2627
#ifdef USE_NVINFER_PLUGIN
2728
// nvinfer_plugin dependencies

0 commit comments

Comments
 (0)