Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ target_link_libraries(${lib_name}
TensorRT::nvinfer_plugin
torch
core_util
cuDNN::cuDNN
PRIVATE
Threads::Threads
)
Expand Down
8 changes: 7 additions & 1 deletion core/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ target_link_libraries(${lib_name}
TensorRT::nvinfer
torch
core_util
stdc++fs
)

if(NOT WIN32)
target_link_libraries(${lib_name}
PUBLIC
stdc++fs
)
endif(NOT WIN32)

# Install
install(FILES ${HEADER_FILES} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/torch_tensorrt/core/runtime")
2 changes: 1 addition & 1 deletion core/runtime/TRTEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct TRTEngine : torch::CustomClassHolder {
std::string name;
RTDevice device_info;

std::string profile_path_prefix = std::experimental::filesystem::temp_directory_path();
std::string profile_path_prefix = std::experimental::filesystem::temp_directory_path().string();

std::unordered_map<uint64_t, uint64_t> in_binding_map = {}; // TRT IDX -> PYT IDX
std::unordered_map<uint64_t, uint64_t> out_binding_map = {}; // TRT IDX -> PYT IDX
Expand Down
1 change: 1 addition & 0 deletions core/runtime/TRTEngineProfiler.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <sstream>

#include "core/runtime/TRTEngineProfiler.h"

Expand Down