Skip to content

Commit

Permalink
Get windows build working (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharrisau authored Mar 21, 2023
1 parent a1d4af0 commit 93b0400
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
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

0 comments on commit 93b0400

Please sign in to comment.