forked from apache/tvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Windows support to C++ RPC Server
- Loading branch information
Showing
11 changed files
with
746 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set(TVM_RPC_SOURCES | ||
main.cc | ||
rpc_env.cc | ||
rpc_server.cc | ||
) | ||
|
||
if(WIN32) | ||
list(APPEND TVM_RPC_SOURCES win32_process.cc) | ||
endif() | ||
|
||
# Set output to same directory as the other TVM libs | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) | ||
add_executable(tvm_rpc ${TVM_RPC_SOURCES}) | ||
set_property(TARGET tvm_rpc PROPERTY INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE) | ||
target_compile_definitions(tvm_rpc PUBLIC -DNOMINMAX) | ||
target_include_directories( | ||
tvm_rpc | ||
PUBLIC "../../include" | ||
PUBLIC DLPACK_PATH | ||
PUBLIC DMLC_PATH | ||
) | ||
|
||
target_link_libraries(tvm_rpc tvm_runtime) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.