Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
1e4ac3cd
Commit
1e4ac3cd
authored
Jul 17, 2018
by
Tianqi Chen
Committed by
GitHub
Jul 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUILD] restrict runtime include headers (#1444)
parent
12cf7754
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
CMakeLists.txt
+14
-4
Makefile
+1
-1
apps/howto_deploy/Makefile
+1
-1
No files found.
CMakeLists.txt
View file @
1e4ac3cd
...
@@ -48,11 +48,8 @@ tvm_option(USE_RANDOM "Build with random support" OFF)
...
@@ -48,11 +48,8 @@ tvm_option(USE_RANDOM "Build with random support" OFF)
# include directories
# include directories
include_directories
(
"include"
)
include_directories
(
"include"
)
include_directories
(
"nnvm/include"
)
include_directories
(
"dmlc-core/include"
)
include_directories
(
"HalideIR/src"
)
include_directories
(
"dlpack/include"
)
include_directories
(
"dlpack/include"
)
include_directories
(
"
topi
/include"
)
include_directories
(
"
dmlc-core
/include"
)
# initial variables
# initial variables
set
(
TVM_LINKER_LIBS
""
)
set
(
TVM_LINKER_LIBS
""
)
...
@@ -169,6 +166,19 @@ target_link_libraries(tvm_topi tvm ${TVM_LINKER_LIBS} ${TVM_RUNTIME_LINKER_LIBS}
...
@@ -169,6 +166,19 @@ target_link_libraries(tvm_topi tvm ${TVM_LINKER_LIBS} ${TVM_RUNTIME_LINKER_LIBS}
target_link_libraries
(
tvm_runtime
${
TVM_RUNTIME_LINKER_LIBS
}
)
target_link_libraries
(
tvm_runtime
${
TVM_RUNTIME_LINKER_LIBS
}
)
target_link_libraries
(
nnvm_compiler tvm
)
target_link_libraries
(
nnvm_compiler tvm
)
# Related headers
target_include_directories
(
tvm
PUBLIC
"HalideIR/src"
PUBLIC
"topi/include"
)
target_include_directories
(
tvm_topi
PUBLIC
"topi/include"
)
target_include_directories
(
nnvm_compiler
PUBLIC
"nnvm/include"
PUBLIC
"topi/include"
)
# Tests
# Tests
set
(
TEST_EXECS
""
)
set
(
TEST_EXECS
""
)
file
(
GLOB TEST_SRCS tests/cpp/*.cc
)
file
(
GLOB TEST_SRCS tests/cpp/*.cc
)
...
...
Makefile
View file @
1e4ac3cd
...
@@ -11,7 +11,7 @@ ifndef DLPACK_PATH
...
@@ -11,7 +11,7 @@ ifndef DLPACK_PATH
DLPACK_PATH
=
$(ROOTDIR)
/dlpack
DLPACK_PATH
=
$(ROOTDIR)
/dlpack
endif
endif
INCLUDE_FLAGS
=
-Iinclude
-I
$(DLPACK_PATH)
/include
-I
$(DMLC_CORE_PATH)
/include
-IHalideIR
/src
-Itopi
/include
INCLUDE_FLAGS
=
-Iinclude
-I
$(DLPACK_PATH)
/include
-I
$(DMLC_CORE_PATH)
/include
PKG_CFLAGS
=
-std
=
c++11
-Wall
-O2
$(INCLUDE_FLAGS)
-fPIC
PKG_CFLAGS
=
-std
=
c++11
-Wall
-O2
$(INCLUDE_FLAGS)
-fPIC
PKG_LDFLAGS
=
PKG_LDFLAGS
=
...
...
apps/howto_deploy/Makefile
View file @
1e4ac3cd
...
@@ -8,7 +8,7 @@ PKG_CFLAGS = -std=c++11 -O2 -fPIC\
...
@@ -8,7 +8,7 @@ PKG_CFLAGS = -std=c++11 -O2 -fPIC\
-I
${
DMLC_CORE
}
/include
\
-I
${
DMLC_CORE
}
/include
\
-I
${
TVM_ROOT
}
/dlpack/include
\
-I
${
TVM_ROOT
}
/dlpack/include
\
PKG_LDFLAGS
=
-L
${
TVM_ROOT
}
/
lib
-ldl
-lpthread
PKG_LDFLAGS
=
-L
${
TVM_ROOT
}
/
build
-ldl
-lpthread
.PHONY
:
clean all
.PHONY
:
clean all
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment