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
42eee923
Commit
42eee923
authored
Jul 06, 2019
by
Ruslan Baratov
Committed by
Tianqi Chen
Jul 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Android demo: Docker improvements (#3499)
- Install OpenCL headers - Set ANDROID_HOME environment variable
parent
3d2a0560
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
docker/Dockerfile.demo_android
+3
-0
tutorials/frontend/deploy_model_on_android.py
+2
-2
No files found.
docker/Dockerfile.demo_android
View file @
42eee923
...
...
@@ -52,6 +52,8 @@ ENV PATH ${PATH}:${VULKAN_SDK}/bin
ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${VULKAN_SDK}/lib
ENV VK_LAYER_PATH ${VULKAN_SDK}/etc/explicit_layer.d
RUN git clone https://github.com/KhronosGroup/OpenCL-Headers /usr/local/OpenCL-Headers/
# Build TVM
RUN cd /usr && \
git clone --depth=1 https://github.com/dmlc/tvm --recursive && \
...
...
@@ -69,3 +71,4 @@ RUN cd /usr && \
# Environment variables
ENV PYTHONPATH=/usr/tvm/python:/usr/tvm/topi/python:/usr/tvm/nnvm/python/:/usr/tvm/vta/python:${PYTHONPATH}
ENV ANDROID_HOME=/opt/android-sdk-linux/
tutorials/frontend/deploy_model_on_android.py
View file @
42eee923
...
...
@@ -130,8 +130,8 @@ from tvm.contrib.download import download_testdata
#
# # the additional include headers you want to add, e.g., SDK_PATH/adrenosdk/Development/Inc
# ADD_C_INCLUDES += /work/adrenosdk-linux-5_0/Development/Inc
# # download from https://github.com/KhronosGroup/OpenCL-Headers
# ADD_C_INCLUDES += /
workspace/3rdparty
/OpenCL-Headers/
# # download
ed
from https://github.com/KhronosGroup/OpenCL-Headers
# ADD_C_INCLUDES += /
usr/local
/OpenCL-Headers/
#
# # the additional link libs you want to add, e.g., ANDROID_LIB_PATH/libOpenCL.so
# ADD_LDLIBS = /workspace/pull-from-android-device/libOpenCL.so
...
...
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