From 0c963c8b918197afd3c0853a205eabcde474a34f Mon Sep 17 00:00:00 2001 From: MizuKuma <33080670+Arktische@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:25:28 +0800 Subject: [PATCH 1/2] fix cpp_rtvm cmake build on Windows --- apps/cpp_rtvm/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cpp_rtvm/CMakeLists.txt b/apps/cpp_rtvm/CMakeLists.txt index bfd26ee3fe9f..f89663f08173 100644 --- a/apps/cpp_rtvm/CMakeLists.txt +++ b/apps/cpp_rtvm/CMakeLists.txt @@ -13,8 +13,8 @@ set(TVM_RUNNER_SOURCES set(RTVM_LINKER_LIBS "") if(WIN32) - list(APPEND RTVM_SOURCES win32_process.cc) - list(APPEND TVM_RUNNER_SOURCES win32_process.cc) + list(APPEND RTVM_SOURCES ../cpp_rpc/win32_process.cc) + list(APPEND TVM_RUNNER_SOURCES ../cpp_rpc/win32_process.cc) endif() # Set output to same directory as the other TVM libs From 618921063cd7af46ef7ef89ec227abebd83277e2 Mon Sep 17 00:00:00 2001 From: MizuKuma <33080670+Arktische@users.noreply.github.com> Date: Fri, 15 Mar 2024 18:47:27 +0800 Subject: [PATCH 2/2] Fix include path for cpp_rtvm --- apps/cpp_rtvm/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cpp_rtvm/main.cc b/apps/cpp_rtvm/main.cc index dc3cf1c41499..2efd7f4a9413 100644 --- a/apps/cpp_rtvm/main.cc +++ b/apps/cpp_rtvm/main.cc @@ -40,7 +40,7 @@ #include "tvm_runner.h" #if defined(_WIN32) -#include "win32_process.h" +#include "../cpp_rpc/win32_process.h" #endif using namespace std;