forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows Support for cpp_rpc (apache#4857)
* Windows Support for cpp_rpc * Add missing patches that fix crashes under Windows * On Windows, use python to untar vs wsl * remove some CMakeLists.txt stuff * more minor CMakeLists.txt changes * Remove items from CMakeLists.txt * Minor CMakeLists.txt changes * More minor CMakeLists.txt changes * Even more minor CMakeLists.txt changes * Modify readme
- Loading branch information
Showing
12 changed files
with
751 additions
and
302 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,27 @@ | ||
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) | ||
|
||
if(WIN32) | ||
target_compile_definitions(tvm_rpc PUBLIC -DNOMINMAX) | ||
endif() | ||
|
||
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
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.