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
a7c90ee5
Commit
a7c90ee5
authored
Mar 24, 2019
by
Luis Vega
Committed by
Tianqi Chen
Mar 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Apps] [howto_deploy] fix cxx-flags order and build directory (#2888)
parent
5f37cc12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
apps/howto_deploy/Makefile
+1
-1
apps/howto_deploy/run_example.sh
+2
-2
No files found.
apps/howto_deploy/Makefile
View file @
a7c90ee5
...
...
@@ -31,4 +31,4 @@ lib/cpp_deploy_pack: cpp_deploy.cc lib/test_addone_sys.o lib/libtvm_runtime_pack
# Deploy using pre-built libtvm_runtime.so
lib/cpp_deploy_normal
:
cpp_deploy.cc lib/test_addone_sys.o
@
mkdir
-p
$
(
@D
)
$(CXX)
$(PKG_CFLAGS)
-o
$@
$^
$(PKG_LDFLAGS)
-ltvm_runtime
$(CXX)
$(PKG_CFLAGS)
-o
$@
$^
-ltvm_runtime
$(PKG_LDFLAGS)
apps/howto_deploy/run_example.sh
View file @
a7c90ee5
...
...
@@ -3,8 +3,8 @@ echo "Build the libraries.."
mkdir
-p
lib
make
echo
"Run the example"
export
LD_LIBRARY_PATH
=
../../
lib
:
${
LD_LIBRARY_PATH
}
export
DYLD_LIBRARY_PATH
=
../../
lib
:
${
DYLD_LIBRARY_PATH
}
export
LD_LIBRARY_PATH
=
../../
build
:
${
LD_LIBRARY_PATH
}
export
DYLD_LIBRARY_PATH
=
../../
build
:
${
DYLD_LIBRARY_PATH
}
echo
"Run the deployment with all in one packed library..."
lib/cpp_deploy_pack
...
...
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