Skip to content

Commit b18143e

Browse files
authored
[DOC][BUILD] Fix cmake and docs (#485)
1 parent 145b3d0 commit b18143e

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ file(GLOB RUNTIME_CUDA_SRCS src/runtime/cuda/*.cc)
8787
file(GLOB RUNTIME_OPENCL_SRCS src/runtime/opencl/*.cc)
8888
file(GLOB RUNTIME_METAL_SRCS src/runtime/metal/*.mm)
8989
file(GLOB RUNTIME_RPC_SRCS src/runtime/rpc/*.cc)
90+
file(GLOB RUNTIME_GRAPH_SRCS src/runtime/graph/*.cc)
9091

9192
if(USE_CUDA)
9293
find_package(CUDA)
@@ -149,6 +150,11 @@ if(USE_RPC)
149150
list(APPEND RUNTIME_SRCS ${RUNTIME_RPC_SRCS})
150151
endif(USE_RPC)
151152

153+
if(USE_GRAPH_RUNTIME)
154+
message(STATUS "Build with Graph runtime support...")
155+
list(APPEND RUNTIME_SRCS ${RUNTIME_GRAPH_SRCS})
156+
endif(USE_GRAPH_RUNTIME)
157+
152158
if(USE_LLVM)
153159
find_package(LLVM CONFIG REQUIRED)
154160
include_directories(${LLVM_INCLUDE_DIRS})

apps/android_rpc/app/src/main/jni/tvm_runtime.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
#include "../src/runtime/dso_module.cc"
1818
#include "../src/runtime/rpc/rpc_session.cc"
1919
#include "../src/runtime/rpc/rpc_event_impl.cc"
20-
#include "../src/runtime/rpc/rpc_server_env.cc"
20+
#include "../src/runtime/rpc/rpc_server_env.cc"
2121
#include "../src/runtime/rpc/rpc_module.cc"
2222
#include "../src/runtime/rpc/rpc_socket_impl.cc"
2323
#include "../src/runtime/thread_pool.cc"
24+
25+
#include "../src/runtime/graph/graph_runtime.cc"
26+
2427
#ifdef TVM_OPENCL_RUNTIME
2528
#include "../src/runtime/opencl/opencl_device_api.cc"
2629
#include "../src/runtime/opencl/opencl_module.cc"

apps/ios_rpc/tvmrpc/TVMRuntime.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#include "../../src/runtime/rpc/rpc_server_env.cc"
2020
#include "../../src/runtime/rpc/rpc_socket_impl.cc"
2121
#include "../../src/runtime/rpc/rpc_module.cc"
22+
// Graph runtime
23+
#include "../../src/runtime/graph/graph_runtime.cc"
2224
// Metal
2325
#include "../../src/runtime/metal/metal_module.mm"
2426
#include "../../src/runtime/metal/metal_device_api.mm"

docs/api/python/contrib.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ tvm.contrib.rpc
2222
.. automodule:: tvm.contrib.rpc
2323
:members:
2424

25-
tvm.contrib.graph
26-
~~~~~~~~~~~~~~~~~
27-
.. automodule:: tvm.contrib.graph
25+
tvm.contrib.graph_runtime
26+
~~~~~~~~~~~~~~~~~~~~~~~~~
27+
.. automodule:: tvm.contrib.graph_runtime
2828
:members:
2929

3030
tvm.contrib.util

web/web_runtime.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "../src/runtime/rpc/rpc_session.cc"
1818
#include "../src/runtime/rpc/rpc_event_impl.cc"
1919
#include "../src/runtime/rpc/rpc_server_env.cc"
20+
#include "../src/runtime/graph/graph_runtime.cc"
2021

2122
namespace tvm {
2223
namespace contrib {

0 commit comments

Comments
 (0)