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
864da840
Commit
864da840
authored
Mar 12, 2019
by
Alexander Pivovarov
Committed by
Tianqi Chen
Mar 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make cpptest build on Ubuntu (#2798)
parent
5e3ceaa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
CMakeLists.txt
+1
-1
docs/contribute/pull_request.rst
+4
-3
No files found.
CMakeLists.txt
View file @
864da840
...
...
@@ -232,7 +232,7 @@ if(GTEST_LIB)
add_executable
(
${
__execname
}
${
__srcpath
}
)
list
(
APPEND TEST_EXECS
${
__execname
}
)
target_link_libraries
(
${
__execname
}
tvm
${
GTEST_LIB
}
pthread
)
tvm
${
GTEST_LIB
}
pthread
dl
)
set_target_properties
(
${
__execname
}
PROPERTIES EXCLUDE_FROM_ALL 1
)
set_target_properties
(
${
__execname
}
PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 1
)
endforeach
()
...
...
docs/contribute/pull_request.rst
View file @
864da840
...
...
@@ -62,14 +62,15 @@ C++
TVM_ROOT=`pwd`
# you need to install google test first, gtest will be installed to $TVM_ROOT/lib
apt-get install -y libgtest-dev
CACHE_PREFIX=. make -f 3rdparty/dmlc-core/scripts/packages.mk gtest
mkdir build
cd build
GTEST_LIB=$TVM_ROOT/lib cmake ..
make cpptest -j
GTEST_LIB=$TVM_ROOT/lib cmake
-DUSE_LLVM=ON
..
make cpptest -j
$(nproc)
for test in *_test; do
./$test
|| exit -1
./$test
done
Python
...
...
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