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
5e3ceaa0
Unverified
Commit
5e3ceaa0
authored
Mar 12, 2019
by
Tianqi Chen
Committed by
GitHub
Mar 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DOCKER] Update docker protocol (#2793)
parent
f8ac138e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
101 changed files
with
201 additions
and
29 deletions
+201
-29
Jenkinsfile
+42
-20
docker/Dockerfile.ci_cpu
+1
-0
docker/Dockerfile.ci_gpu
+1
-1
docker/Dockerfile.ci_i386
+1
-0
docker/bash.sh
+8
-0
docker/install/ubuntu_install_onnx.sh
+1
-4
docker/with_the_same_user
+7
-0
docs/contribute/pull_request.rst
+23
-1
include/tvm/api_registry.h
+1
-0
include/tvm/attrs.h
+1
-0
include/tvm/build_module.h
+2
-0
include/tvm/expr.h
+1
-0
include/tvm/ir_functor_ext.h
+1
-0
include/tvm/ir_pass.h
+2
-1
include/tvm/relay/error.h
+1
-0
include/tvm/relay/expr_functor.h
+2
-0
include/tvm/relay/pattern_functor.h
+2
-0
include/tvm/runtime/packed_func.h
+1
-0
include/tvm/schedule.h
+1
-0
include/tvm/tensor.h
+1
-0
nnvm/include/nnvm/graph.h
+1
-0
nnvm/include/nnvm/graph_attr_types.h
+1
-0
nnvm/include/nnvm/node.h
+1
-0
nnvm/include/nnvm/op_attr_types.h
+1
-0
nnvm/include/nnvm/pass_functions.h
+1
-0
nnvm/include/nnvm/symbolic.h
+1
-0
nnvm/python/nnvm/top/nn.py
+2
-0
nnvm/src/c_api/c_api_common.h
+2
-0
nnvm/src/compiler/compile_engine.cc
+1
-0
nnvm/src/compiler/graph_fuse.cc
+3
-0
nnvm/src/compiler/graph_fuse.h
+1
-0
nnvm/src/compiler/graph_hash.cc
+1
-0
nnvm/src/compiler/graph_hash.h
+1
-0
nnvm/src/compiler/graph_runtime.cc
+1
-0
nnvm/src/compiler/graph_transform.h
+2
-0
nnvm/src/compiler/pattern_util.h
+1
-0
nnvm/src/top/op_common.h
+2
-0
src/arithmetic/canonical.cc
+2
-0
src/arithmetic/canonical.h
+1
-0
src/autotvm/touch_extractor.cc
+1
-0
src/autotvm/touch_extractor.h
+1
-0
src/codegen/codegen_opengl.cc
+2
-0
src/codegen/codegen_opengl.h
+2
-0
src/codegen/llvm/codegen_cpu.cc
+1
-0
src/codegen/llvm/codegen_cpu.h
+1
-0
src/codegen/llvm/codegen_llvm.h
+2
-0
src/codegen/llvm/llvm_common.cc
+1
-0
src/codegen/llvm/llvm_common.h
+1
-0
src/codegen/spirv/codegen_spirv.h
+2
-0
src/codegen/spirv/ir_builder.h
+1
-0
src/codegen/stackvm/codegen_stackvm.cc
+1
-0
src/codegen/verilog/codegen_verilog.cc
+1
-0
src/codegen/verilog/vpi_session.cc
+1
-0
src/codegen/verilog/vpi_session.h
+1
-0
src/common/arena.h
+1
-0
src/lang/attr_functor.h
+2
-0
src/op/compute_op.cc
+1
-0
src/op/hybrid_op.cc
+1
-0
src/pass/arg_binder.h
+1
-0
src/pass/storage_access.cc
+1
-0
src/relay/backend/compile_engine.cc
+1
-0
src/relay/backend/param_dict.cc
+1
-0
src/relay/ir/type_functor.cc
+1
-0
src/relay/ir/type_functor.h
+1
-0
src/relay/pass/alter_op_layout.cc
+2
-0
src/relay/pass/pass_util.h
+1
-0
src/relay/pass/quantize.cc
+1
-0
src/relay/pass/type_solver.cc
+1
-0
src/relay/pass/type_solver.h
+2
-0
src/runtime/cuda/cuda_module.cc
+1
-0
src/runtime/cuda/cuda_module.h
+1
-0
src/runtime/file_util.cc
+1
-1
src/runtime/file_util.h
+1
-0
src/runtime/graph/graph_runtime.cc
+2
-0
src/runtime/graph/graph_runtime.h
+2
-0
src/runtime/metal/metal_common.h
+1
-0
src/runtime/metal/metal_module.h
+1
-0
src/runtime/module_util.cc
+1
-0
src/runtime/module_util.h
+1
-0
src/runtime/opencl/aocl/aocl_common.h
+1
-0
src/runtime/opencl/aocl/aocl_module.h
+1
-0
src/runtime/opencl/opencl_common.h
+2
-0
src/runtime/opencl/opencl_module.h
+1
-0
src/runtime/opencl/sdaccel/sdaccel_common.h
+1
-0
src/runtime/opencl/sdaccel/sdaccel_module.h
+1
-0
src/runtime/opengl/opengl_common.h
+1
-0
src/runtime/opengl/opengl_module.cc
+1
-0
src/runtime/opengl/opengl_module.h
+2
-0
src/runtime/rocm/rocm_module.cc
+1
-0
src/runtime/rocm/rocm_module.h
+1
-0
src/runtime/rpc/rpc_session.h
+2
-0
src/runtime/sgx/trusted/runtime.h
+1
-0
src/runtime/stackvm/stackvm_module.cc
+3
-0
src/runtime/stackvm/stackvm_module.h
+1
-0
src/runtime/vulkan/vulkan_common.h
+1
-0
src/runtime/workspace_pool.cc
+1
-0
src/runtime/workspace_pool.h
+1
-0
src/schedule/graph.cc
+1
-0
tests/lint/pylintrc
+1
-1
topi/include/topi/transform.h
+1
-0
topi/tests/python/test_topi_upsampling.py
+0
-0
No files found.
Jenkinsfile
View file @
5e3ceaa0
...
...
@@ -3,6 +3,28 @@
// Jenkins pipeline
// See documents at https://jenkins.io/doc/book/pipeline/jenkinsfile/
// Docker env used for testing
// Different image may have different version tag
// because some of them are more stable than anoter.
//
// Docker images are maintained by PMC, cached in dockerhub
// and remains relatively stable over the time.
// Flow for upgrading docker env(need commiter)
//
// - Send PR to upgrade build script in the repo
// - Build the new docker image
// - Tag the docker image with a new version and push to tvmai
// - Update the version in the Jenkinsfile, send a PR
// - Fix any issues wrt to the new image version in the PR
// - Merge the PR and now we are in new version
// - Tag the new version as the lates
// - Periodically cleanup the old versions on local workers
//
ci_lint
=
"tvmai/ci-lint:v0.50"
ci_gpu
=
"tvmai/ci-gpu:v0.50"
ci_cpu
=
"tvmai/ci-cpu:v0.41"
ci_i386
=
"tvmai/ci-i386:v0.50"
// tvm libraries
tvm_runtime
=
"build/libtvm_runtime.so, build/config.cmake"
tvm_lib
=
"build/libtvm.so, "
+
tvm_runtime
...
...
@@ -39,7 +61,7 @@ stage("Sanity Check") {
node
(
'CPU'
)
{
ws
(
'workspace/tvm/sanity'
)
{
init_git
()
sh
"${docker_run}
tvmai/ci-lint
./tests/scripts/task_lint.sh"
sh
"${docker_run}
${ci_lint}
./tests/scripts/task_lint.sh"
}
}
}
...
...
@@ -103,7 +125,7 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER g++\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make
(
'tvmai/ci-gpu'
,
'build'
,
'-j2'
)
make
(
ci_gpu
,
'build'
,
'-j2'
)
pack_lib
(
'gpu'
,
tvm_multilib
)
// compiler test
sh
"""
...
...
@@ -117,7 +139,7 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER clang-6.0\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make
(
'tvmai/ci-gpu'
,
'build2'
,
'-j2'
)
make
(
ci_gpu
,
'build2'
,
'-j2'
)
}
}
},
...
...
@@ -138,15 +160,15 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER g++\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make
(
'tvmai/ci-cpu'
,
'build'
,
'-j2'
)
make
(
ci_cpu
,
'build'
,
'-j2'
)
pack_lib
(
'cpu'
,
tvm_lib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
sh
"${docker_run}
tvmai/ci-cpu
./tests/scripts/task_cpp_unittest.sh"
sh
"${docker_run}
tvmai/ci-cpu
./tests/scripts/task_python_vta.sh"
sh
"${docker_run}
tvmai/ci-cpu
./tests/scripts/task_rust.sh"
sh
"${docker_run}
tvmai/ci-cpu
./tests/scripts/task_golang.sh"
sh
"${docker_run}
tvmai/ci-cpu
./tests/scripts/task_python_unittest.sh"
sh
"${docker_run}
tvmai/ci-cpu
./tests/scripts/task_python_integration.sh"
sh
"${docker_run}
${ci_cpu}
./tests/scripts/task_cpp_unittest.sh"
sh
"${docker_run}
${ci_cpu}
./tests/scripts/task_python_vta.sh"
sh
"${docker_run}
${ci_cpu}
./tests/scripts/task_rust.sh"
sh
"${docker_run}
${ci_cpu}
./tests/scripts/task_golang.sh"
sh
"${docker_run}
${ci_cpu}
./tests/scripts/task_python_unittest.sh"
sh
"${docker_run}
${ci_cpu}
./tests/scripts/task_python_integration.sh"
}
}
}
...
...
@@ -166,7 +188,7 @@ stage('Build') {
echo set\\(CMAKE_CXX_COMPILER g++\\) >> config.cmake
echo set\\(CMAKE_CXX_FLAGS -Werror\\) >> config.cmake
"""
make
(
'tvmai/ci-i386'
,
'build'
,
'-j2'
)
make
(
ci_i386
,
'build'
,
'-j2'
)
pack_lib
(
'i386'
,
tvm_multilib
)
}
}
...
...
@@ -180,8 +202,8 @@ stage('Unit Test') {
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
sh
"${docker_run}
tvmai/ci-gpu
./tests/scripts/task_python_unittest.sh"
sh
"${docker_run}
tvmai/ci-gpu
./tests/scripts/task_python_integration.sh"
sh
"${docker_run}
${ci_gpu}
./tests/scripts/task_python_unittest.sh"
sh
"${docker_run}
${ci_gpu}
./tests/scripts/task_python_integration.sh"
}
}
}
...
...
@@ -192,9 +214,9 @@ stage('Unit Test') {
init_git
()
unpack_lib
(
'i386'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
sh
"${docker_run}
tvmai/ci-i386
./tests/scripts/task_python_unittest.sh"
sh
"${docker_run}
tvmai/ci-i386
./tests/scripts/task_python_integration.sh"
sh
"${docker_run}
tvmai/ci-i386
./tests/scripts/task_python_vta.sh"
sh
"${docker_run}
${ci_i386}
./tests/scripts/task_python_unittest.sh"
sh
"${docker_run}
${ci_i386}
./tests/scripts/task_python_integration.sh"
sh
"${docker_run}
${ci_i386}
./tests/scripts/task_python_vta.sh"
}
}
}
...
...
@@ -205,7 +227,7 @@ stage('Unit Test') {
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
sh
"${docker_run}
tvmai/ci-gpu
./tests/scripts/task_java_unittest.sh"
sh
"${docker_run}
${ci_gpu}
./tests/scripts/task_java_unittest.sh"
}
}
}
...
...
@@ -219,7 +241,7 @@ stage('Integration Test') {
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
sh
"${docker_run}
tvmai/ci-gpu
./tests/scripts/task_python_topi.sh"
sh
"${docker_run}
${ci_gpu}
./tests/scripts/task_python_topi.sh"
}
}
}
...
...
@@ -230,7 +252,7 @@ stage('Integration Test') {
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
sh
"${docker_run}
tvmai/ci-gpu
./tests/scripts/task_python_frontend.sh"
sh
"${docker_run}
${ci_gpu}
./tests/scripts/task_python_frontend.sh"
}
}
}
...
...
@@ -241,7 +263,7 @@ stage('Integration Test') {
init_git
()
unpack_lib
(
'gpu'
,
tvm_multilib
)
timeout
(
time:
max_time
,
unit:
'MINUTES'
)
{
sh
"${docker_run}
tvmai/ci-gpu
./tests/scripts/task_python_docs.sh"
sh
"${docker_run}
${ci_gpu}
./tests/scripts/task_python_docs.sh"
}
pack_lib
(
'mydocs'
,
'docs.tgz'
)
}
...
...
docker/Dockerfile.ci_cpu
View file @
5e3ceaa0
# CI docker CPU env
# tag: v0.41
FROM ubuntu:16.04
RUN apt-get update --fix-missing
...
...
docker/Dockerfile.ci_gpu
View file @
5e3ceaa0
# CI docker GPU env
# tag: v0.
41
# tag: v0.
50
FROM nvidia/cuda:8.0-cudnn7-devel
# Base scripts
...
...
docker/Dockerfile.ci_i386
View file @
5e3ceaa0
# CI docker i386 env
# tag: v0.50
FROM ioft/i386-ubuntu:16.04
...
...
docker/bash.sh
View file @
5e3ceaa0
...
...
@@ -33,6 +33,12 @@ else
DOCKER_BINARY
=
"docker"
fi
if
[[
!
-z
$CUDA_VISIBLE_DEVICES
]]
;
then
CUDA_ENV
=
"-e CUDA_VISIBLE_DEVICES=
${
CUDA_VISIBLE_DEVICES
}
"
else
CUDA_ENV
=
""
fi
# Print arguments.
echo
"WORKSPACE:
${
WORKSPACE
}
"
echo
"DOCKER CONTAINER NAME:
${
DOCKER_IMAGE_NAME
}
"
...
...
@@ -53,6 +59,8 @@ ${DOCKER_BINARY} run --rm --pid=host\
-e
"CI_BUILD_UID=
$(
id
-u
)
"
\
-e
"CI_BUILD_GROUP=
$(
id
-g
-n
)
"
\
-e
"CI_BUILD_GID=
$(
id
-g
)
"
\
-e
"PYTHONPATH=python:topi/python"
\
${
CUDA_ENV
}
\
${
CI_DOCKER_EXTRA_PARAMS
[@]
}
\
${
DOCKER_IMAGE_NAME
}
\
bash
--login
/docker/with_the_same_user
\
...
...
docker/install/ubuntu_install_onnx.sh
View file @
5e3ceaa0
...
...
@@ -5,10 +5,7 @@ set -u
set
-o
pipefail
# fix to certain version for now
pip2 install onnx>
=
1.1.0
pip3 install onnx>
=
1.1.0
pip2 install http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
pip2 install torchvision
pip3 install http://download.pytorch.org/whl/cu75/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
pip3 install https://download.pytorch.org/whl/cu80/torch-1.0.1.post2-cp36-cp36m-linux_x86_64.whl
pip3 install torchvision
docker/with_the_same_user
View file @
5e3ceaa0
...
...
@@ -26,8 +26,15 @@ getent passwd "${CI_BUILD_UID}" || adduser --gid "${CI_BUILD_GID}" --uid "${CI_B
usermod
-a
-G
sudo
"
${
CI_BUILD_USER
}
"
echo
"
${
CI_BUILD_USER
}
ALL=(ALL) NOPASSWD:ALL"
>
/etc/sudoers.d/90-nopasswd-sudo
if
[[
!
-z
$CUDA_VISIBLE_DEVICES
]]
;
then
CUDA_ENV
=
"CUDA_VISIBLE_DEVICES=
${
CUDA_VISIBLE_DEVICES
}
"
else
CUDA_ENV
=
""
fi
HOME
=
${
CI_BUILD_HOME
}
\
sudo
-u
"#
${
CI_BUILD_UID
}
"
--preserve-env
\
${
CUDA_ENV
}
\
PATH
=
${
PATH
}
\
JAVA_HOME
=
${
JAVA_HOME
}
\
LD_LIBRARY_PATH
=
${
LD_LIBRARY_PATH
}
\
...
...
docs/contribute/pull_request.rst
View file @
5e3ceaa0
...
...
@@ -12,7 +12,7 @@ This is a quick guide to submit a pull request, please also refer to the detaile
git rebase upstream/master
- Make sure code style check pass by typing the following command, and all the existing test-cases pass.
- ``docker/bash.sh tvmai/ci-lint ./tests/scripts/task_lint.sh``
- ``docker/bash.sh tvmai/ci-lint ./tests/scripts/task_lint.sh``
(Note: You must install docker beforehand so you can run a docker image.)
- Add test-cases to cover the new features or bugfix the patch introduces.
- Document the code you wrote, see more at :ref:`doc_guide`
...
...
@@ -27,6 +27,28 @@ This is a quick guide to submit a pull request, please also refer to the detaile
- The patch can be merged after the reviewers approve the pull request.
CI Environment
--------------
We use docker container to create stable CI environments
that can be deployed to multiple machines.
You can find the prebuilt images in `<https://hub.docker.com/r/tvmai/>`_ .
Because we want a relatively stable CI environment and make use of pre-cached image,
all of the CI images are built and maintained by comitters.
Upgrade of CI images can cause problems and need fixes to accommodate the new env.
Here is the protocol to update CI image:
- Send PR to upgrade build script in the repo
- Can be done by a contributor, the following steps need committership.
- Build the new docker image
- Tag the docker image with a new version and push to tvmai
- Update the version(most of the time increase the minor version) in the Jenkinsfile, send a PR.
- Fix any issues wrt to the new image versions in the PR.
- Merge the PR and now we are in new version.
- Tag the new version as the latest.
- Periodically cleanup the old versions on local workers
Testing
-------
Even though we have hooks to run unit tests automatically for each pull request, It's always recommended to run unit tests
...
...
include/tvm/api_registry.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#define TVM_API_REGISTRY_H_
#include <string>
#include <utility>
#include "base.h"
#include "packed_func_ext.h"
#include "runtime/registry.h"
...
...
include/tvm/attrs.h
View file @
5e3ceaa0
...
...
@@ -33,6 +33,7 @@
#include <functional>
#include <type_traits>
#include <string>
#include <utility>
#include "ir.h"
#include "base.h"
#include "expr.h"
...
...
include/tvm/build_module.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,8 @@
#include <string>
#include <vector>
#include <utility>
#include <unordered_map>
#include <unordered_set>
#include "runtime/packed_func.h"
#include "schedule_pass.h"
#include "lowered_func.h"
...
...
include/tvm/expr.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <ir/IRPrinter.h>
#include <string>
#include <algorithm>
#include <unordered_map>
#include "base.h"
#include "runtime/c_runtime_api.h"
...
...
include/tvm/ir_functor_ext.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include "tvm/node/ir_functor.h"
#include "ir.h"
#include <utility>
namespace
tvm
{
namespace
ir
{
...
...
include/tvm/ir_pass.h
View file @
5e3ceaa0
...
...
@@ -11,6 +11,7 @@
#include <arithmetic/Simplify.h>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <string>
#include "expr.h"
...
...
@@ -336,7 +337,7 @@ Stmt RewriteUnsafeSelect(Stmt stmt);
Stmt
LowerStorageAccessInfo
(
Stmt
stmt
);
/*!
* \brief Decorate the stmt with a device scope, this is helpful for
* \brief Decorate the stmt with a device scope, this is helpful for
* hardware accelerator without thread blocks.
*
* \param stmt The stmt to be trasnformed
...
...
include/tvm/relay/error.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
#include <sstream>
#include <unordered_map>
#include "./base.h"
#include "./expr.h"
#include "./module.h"
...
...
include/tvm/relay/expr_functor.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,8 @@
#include <tvm/node/ir_functor.h>
#include <string>
#include <utility>
#include <unordered_map>
#include "./expr.h"
#include "./adt.h"
#include "./op.h"
...
...
include/tvm/relay/pattern_functor.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,8 @@
#include <tvm/node/ir_functor.h>
#include <string>
#include <utility>
#include <unordered_map>
#include "./expr.h"
#include "./op.h"
#include "./error.h"
...
...
include/tvm/runtime/packed_func.h
View file @
5e3ceaa0
...
...
@@ -16,6 +16,7 @@
#include <string>
#include <limits>
#include <memory>
#include <utility>
#include <type_traits>
#include "c_runtime_api.h"
#include "module.h"
...
...
include/tvm/schedule.h
View file @
5e3ceaa0
...
...
@@ -7,6 +7,7 @@
#define TVM_SCHEDULE_H_
#include <string>
#include <unordered_map>
#include "base.h"
#include "expr.h"
#include "tensor.h"
...
...
include/tvm/tensor.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <tvm/node/container.h>
#include <string>
#include <vector>
#include <utility>
#include <type_traits>
#include "base.h"
...
...
nnvm/include/nnvm/graph.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <string>
#include <utility>
#include <algorithm>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include "base.h"
...
...
nnvm/include/nnvm/graph_attr_types.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include <vector>
#include <string>
#include <unordered_map>
#include "tuple.h"
#include "layout.h"
...
...
nnvm/include/nnvm/node.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,7 @@
#include <memory>
#include <string>
#include <vector>
#include <utility>
#include <unordered_map>
#include "base.h"
#include "op.h"
...
...
nnvm/include/nnvm/op_attr_types.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <string>
#include <utility>
#include <functional>
#include <unordered_map>
#include "base.h"
#include "node.h"
#include "tuple.h"
...
...
nnvm/include/nnvm/pass_functions.h
View file @
5e3ceaa0
...
...
@@ -13,6 +13,7 @@
#include <string>
#include <memory>
#include <vector>
#include <utility>
#include "base.h"
#include "pass.h"
#include "graph_attr_types.h"
...
...
nnvm/include/nnvm/symbolic.h
View file @
5e3ceaa0
...
...
@@ -14,6 +14,7 @@
#include <vector>
#include <tuple>
#include <utility>
#include <unordered_map>
#include "base.h"
#include "node.h"
...
...
nnvm/python/nnvm/top/nn.py
View file @
5e3ceaa0
...
...
@@ -198,7 +198,9 @@ def compute_contrib_conv2d_NCHWc(attrs, inputs, _):
# pylint: disable=assignment-from-no-return
out
=
topi
.
nn
.
conv2d_NCHWc
(
inputs
[
0
],
inputs
[
1
],
strides
,
padding
,
dilation
,
layout
,
out_layout
,
out_dtype
)
# pylint: enable=assignment-from-no-return
elif
groups
==
in_channel
and
groups
==
out_channel
:
# pylint: disable=assignment-from-no-return
out
=
topi
.
nn
.
depthwise_conv2d_NCHWc
(
inputs
[
0
],
inputs
[
1
],
strides
,
padding
,
dilation
,
layout
,
out_layout
,
out_dtype
)
# pylint: enable=assignment-from-no-return
...
...
nnvm/src/c_api/c_api_common.h
View file @
5e3ceaa0
...
...
@@ -13,6 +13,8 @@
#include <nnvm/symbolic.h>
#include <vector>
#include <string>
#include <utility>
#include <unordered_map>
/*! \brief macro to guard beginning and end section of all functions */
#define API_BEGIN() try {
...
...
nnvm/src/compiler/compile_engine.cc
View file @
5e3ceaa0
...
...
@@ -14,6 +14,7 @@
#include <tuple>
#include <vector>
#include <limits>
#include <unordered_map>
#include "graph_hash.h"
#include "compile_engine.h"
...
...
nnvm/src/compiler/graph_fuse.cc
View file @
5e3ceaa0
...
...
@@ -14,7 +14,10 @@
#include <nnvm/tuple.h>
#include <tvm/lowered_func.h>
#include <tvm/runtime/packed_func.h>
#include <memory>
#include <utility>
#include <limits>
#include <unordered_map>
#include "graph_fuse.h"
#include "graph_runtime.h"
...
...
nnvm/src/compiler/graph_fuse.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include <nnvm/graph.h>
#include <vector>
#include <unordered_map>
#include "compile_engine.h"
...
...
nnvm/src/compiler/graph_hash.cc
View file @
5e3ceaa0
...
...
@@ -11,6 +11,7 @@
#include <tvm/runtime/packed_func.h>
#include <functional>
#include <vector>
#include <utility>
#include <algorithm>
#include "node_attr.h"
#include "graph_hash.h"
...
...
nnvm/src/compiler/graph_hash.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <nnvm/graph.h>
#include <tvm/operation.h>
#include <string>
#include <utility>
namespace
nnvm
{
namespace
compiler
{
...
...
nnvm/src/compiler/graph_runtime.cc
View file @
5e3ceaa0
...
...
@@ -4,6 +4,7 @@
* \brief Interface code with TVM graph runtime.
*/
#include <dmlc/memory_io.h>
#include <utility>
#include "graph_runtime.h"
namespace
nnvm
{
...
...
nnvm/src/compiler/graph_transform.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,8 @@
#include <nnvm/graph.h>
#include <vector>
#include <utility>
#include <unordered_map>
namespace
nnvm
{
namespace
compiler
{
...
...
nnvm/src/compiler/pattern_util.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <vector>
#include <utility>
#include <string>
#include <unordered_map>
namespace
nnvm
{
namespace
compiler
{
...
...
nnvm/src/top/op_common.h
View file @
5e3ceaa0
...
...
@@ -11,6 +11,8 @@
#include <nnvm/top/tensor.h>
#include <string>
#include <vector>
#include <utility>
#include <unordered_map>
#include <unordered_set>
namespace
nnvm
{
...
...
src/arithmetic/canonical.cc
View file @
5e3ceaa0
...
...
@@ -10,6 +10,8 @@
#include <map>
#include <limits>
#include <vector>
#include <memory>
#include <unordered_map>
#include "canonical.h"
#include "compute_expr.h"
#include "arithmetic/Simplify.h"
...
...
src/arithmetic/canonical.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include <tvm/expr.h>
#include <tvm/schedule.h>
#include <memory>
namespace
tvm
{
namespace
arith
{
...
...
src/autotvm/touch_extractor.cc
View file @
5e3ceaa0
...
...
@@ -9,6 +9,7 @@
#include <set>
#include <algorithm>
#include <cmath>
#include <unordered_map>
namespace
tvm
{
namespace
autotvm
{
...
...
src/autotvm/touch_extractor.h
View file @
5e3ceaa0
...
...
@@ -15,6 +15,7 @@
#include <map>
#include <string>
#include <deque>
#include <unordered_map>
#include "feature_visitor.h"
namespace
tvm
{
...
...
src/codegen/codegen_opengl.cc
View file @
5e3ceaa0
...
...
@@ -8,6 +8,8 @@
#include <tvm/packed_func_ext.h>
#include <vector>
#include <string>
#include <utility>
#include <unordered_map>
#include "codegen_opengl.h"
#include "build_common.h"
#include "../runtime/thread_storage_scope.h"
...
...
src/codegen/codegen_opengl.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,8 @@
#include <tvm/codegen.h>
#include <tvm/packed_func_ext.h>
#include <string>
#include <unordered_set>
#include <unordered_map>
#include "codegen_c.h"
#include "../runtime/opengl/opengl_module.h"
...
...
src/codegen/llvm/codegen_cpu.cc
View file @
5e3ceaa0
...
...
@@ -6,6 +6,7 @@
#include <tvm/runtime/c_runtime_api.h>
#include <tvm/ir_pass.h>
#include <unordered_map>
#include "codegen_cpu.h"
#include "../../pass/ir_util.h"
...
...
src/codegen/llvm/codegen_cpu.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,7 @@
#include <utility>
#include <vector>
#include <string>
#include <unordered_map>
#include "codegen_llvm.h"
namespace
tvm
{
...
...
src/codegen/llvm/codegen_llvm.h
View file @
5e3ceaa0
...
...
@@ -15,6 +15,8 @@
#include <utility>
#include <vector>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include "llvm_common.h"
#include "../../runtime/thread_storage_scope.h"
...
...
src/codegen/llvm/llvm_common.cc
View file @
5e3ceaa0
...
...
@@ -7,6 +7,7 @@
#include <tvm/base.h>
#include <atomic>
#include <mutex>
#include <memory>
#include "llvm_common.h"
namespace
tvm
{
...
...
src/codegen/llvm/llvm_common.h
View file @
5e3ceaa0
...
...
@@ -50,6 +50,7 @@
#include <utility>
#include <string>
#include <memory>
namespace
tvm
{
namespace
codegen
{
...
...
src/codegen/spirv/codegen_spirv.h
View file @
5e3ceaa0
...
...
@@ -11,6 +11,8 @@
#include <tvm/lowered_func.h>
#include <vector>
#include <memory>
#include <unordered_map>
#include "ir_builder.h"
#include "../../runtime/thread_storage_scope.h"
...
...
src/codegen/spirv/ir_builder.h
View file @
5e3ceaa0
...
...
@@ -14,6 +14,7 @@
#include <vector>
#include <string>
#include <map>
#include <unordered_map>
#include <spirv.hpp>
...
...
src/codegen/stackvm/codegen_stackvm.cc
View file @
5e3ceaa0
...
...
@@ -5,6 +5,7 @@
#include <tvm/runtime/registry.h>
#include <tvm/packed_func_ext.h>
#include <limits>
#include <utility>
#include "codegen_stackvm.h"
#include "../../runtime/stackvm/stackvm_module.h"
...
...
src/codegen/verilog/codegen_verilog.cc
View file @
5e3ceaa0
...
...
@@ -6,6 +6,7 @@
#include <cctype>
#include <sstream>
#include <iostream>
#include <utility>
#include "codegen_verilog.h"
#include "../../arithmetic/compute_expr.h"
...
...
src/codegen/verilog/vpi_session.cc
View file @
5e3ceaa0
...
...
@@ -4,6 +4,7 @@
* \brief IPC session call to verilog simulator via VPI.
*/
#include <tvm/api_registry.h>
#include <memory>
#include "vpi_session.h"
namespace
tvm
{
...
...
src/codegen/verilog/vpi_session.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,7 @@
#include <tvm/base.h>
#include <vector>
#include <string>
#include <memory>
#include "../../common/pipe.h"
#include "../../../verilog/tvm_vpi.h"
...
...
src/common/arena.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#ifndef TVM_COMMON_ARENA_H_
#define TVM_COMMON_ARENA_H_
#include <utility>
#include <type_traits>
namespace
tvm
{
...
...
src/lang/attr_functor.h
View file @
5e3ceaa0
...
...
@@ -12,6 +12,8 @@
#ifndef TVM_LANG_ATTR_FUNCTOR_H_
#define TVM_LANG_ATTR_FUNCTOR_H_
#include <utility>
namespace
tvm
{
template
<
typename
FType
>
...
...
src/op/compute_op.cc
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <tvm/ir_pass.h>
#include <unordered_set>
#include <string>
#include <utility>
#include "compute_op.h"
#include "op_util.h"
#include "../schedule/message_passing.h"
...
...
src/op/hybrid_op.cc
View file @
5e3ceaa0
...
...
@@ -12,6 +12,7 @@
#include <ir/Expr.h>
#include <unordered_set>
#include <string>
#include <utility>
#include "op_util.h"
#include "hybrid_op.h"
...
...
src/pass/arg_binder.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <tvm/buffer.h>
#include <string>
#include <vector>
#include <unordered_map>
namespace
tvm
{
namespace
ir
{
...
...
src/pass/storage_access.cc
View file @
5e3ceaa0
...
...
@@ -6,6 +6,7 @@
#include <tvm/ir_mutator.h>
#include <tvm/target_info.h>
#include <string>
#include <utility>
#include "ir_util.h"
#include "storage_access.h"
#include "../arithmetic/compute_expr.h"
...
...
src/relay/backend/compile_engine.cc
View file @
5e3ceaa0
...
...
@@ -15,6 +15,7 @@
#include <limits>
#include <mutex>
#include <functional>
#include <unordered_map>
#include "compile_engine.h"
namespace
tvm
{
...
...
src/relay/backend/param_dict.cc
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
#include <utility>
namespace
tvm
{
namespace
relay
{
...
...
src/relay/ir/type_functor.cc
View file @
5e3ceaa0
...
...
@@ -3,6 +3,7 @@
* \file type_functor.cc
* \brief Implementations of type functors.
*/
#include <utility>
#include "type_functor.h"
namespace
tvm
{
...
...
src/relay/ir/type_functor.h
View file @
5e3ceaa0
...
...
@@ -11,6 +11,7 @@
#include <tvm/relay/adt.h>
#include <string>
#include <vector>
#include <utility>
namespace
tvm
{
namespace
relay
{
...
...
src/relay/pass/alter_op_layout.cc
View file @
5e3ceaa0
...
...
@@ -13,6 +13,8 @@
#include <vector>
#include <functional>
#include <string>
#include <utility>
#include <unordered_map>
#include "alter_op_layout.h"
...
...
src/relay/pass/pass_util.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <tvm/relay/op.h>
#include <tvm/relay/expr.h>
#include <tvm/relay/attrs/transform.h>
#include <unordered_map>
namespace
tvm
{
namespace
relay
{
...
...
src/relay/pass/quantize.cc
View file @
5e3ceaa0
...
...
@@ -15,6 +15,7 @@
#include <string>
#include <vector>
#include <stack>
#include <utility>
#include "pattern_util.h"
#include "quantize.h"
...
...
src/relay/pass/type_solver.cc
View file @
5e3ceaa0
...
...
@@ -4,6 +4,7 @@
* \brief Type solver implementations.
*/
#include <string>
#include <memory>
#include "type_solver.h"
#include "../ir/type_functor.h"
...
...
src/relay/pass/type_solver.h
View file @
5e3ceaa0
...
...
@@ -12,6 +12,8 @@
#include <tvm/relay/error.h>
#include <vector>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include "../../common/arena.h"
...
...
src/runtime/cuda/cuda_module.cc
View file @
5e3ceaa0
...
...
@@ -11,6 +11,7 @@
#include <array>
#include <string>
#include <mutex>
#include <unordered_map>
#include "cuda_common.h"
#include "../pack_args.h"
#include "../thread_storage_scope.h"
...
...
src/runtime/cuda/cuda_module.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <memory>
#include <vector>
#include <string>
#include <unordered_map>
#include "../meta_data.h"
namespace
tvm
{
...
...
src/runtime/file_util.cc
View file @
5e3ceaa0
...
...
@@ -7,7 +7,7 @@
#include <tvm/runtime/serializer.h>
#include <fstream>
#include <vector>
#include <unordered_map>
#include "file_util.h"
namespace
tvm
{
...
...
src/runtime/file_util.h
View file @
5e3ceaa0
...
...
@@ -7,6 +7,7 @@
#define TVM_RUNTIME_FILE_UTIL_H_
#include <string>
#include <unordered_map>
#include "meta_data.h"
namespace
tvm
{
...
...
src/runtime/graph/graph_runtime.cc
View file @
5e3ceaa0
...
...
@@ -14,6 +14,8 @@
#include <numeric>
#include <vector>
#include <string>
#include <memory>
#include <utility>
namespace
tvm
{
namespace
runtime
{
...
...
src/runtime/graph/graph_runtime.h
View file @
5e3ceaa0
...
...
@@ -14,6 +14,8 @@
#include <tvm/runtime/ndarray.h>
#include <tvm/runtime/packed_func.h>
#include <memory>
#include <utility>
#include <vector>
#include <string>
...
...
src/runtime/metal/metal_common.h
View file @
5e3ceaa0
...
...
@@ -20,6 +20,7 @@
#include <mutex>
#include <string>
#include <vector>
#include <memory>
#include "../workspace_pool.h"
namespace
tvm
{
...
...
src/runtime/metal/metal_module.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <memory>
#include <vector>
#include <string>
#include <unordered_map>
#include "../meta_data.h"
namespace
tvm
{
...
...
src/runtime/module_util.cc
View file @
5e3ceaa0
...
...
@@ -9,6 +9,7 @@
#include <tvm/runtime/module.h>
#include <tvm/runtime/registry.h>
#include <string>
#include <memory>
#include "module_util.h"
namespace
tvm
{
...
...
src/runtime/module_util.h
View file @
5e3ceaa0
...
...
@@ -9,6 +9,7 @@
#include <tvm/runtime/module.h>
#include <tvm/runtime/c_runtime_api.h>
#include <tvm/runtime/c_backend_api.h>
#include <memory>
#include <vector>
extern
"C"
{
...
...
src/runtime/opencl/aocl/aocl_common.h
View file @
5e3ceaa0
...
...
@@ -6,6 +6,7 @@
#ifndef TVM_RUNTIME_OPENCL_AOCL_AOCL_COMMON_H_
#define TVM_RUNTIME_OPENCL_AOCL_AOCL_COMMON_H_
#include <memory>
#include "../opencl_common.h"
namespace
tvm
{
...
...
src/runtime/opencl/aocl/aocl_module.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <memory>
#include <vector>
#include <string>
#include <unordered_map>
#include "../../meta_data.h"
namespace
tvm
{
...
...
src/runtime/opencl/opencl_common.h
View file @
5e3ceaa0
...
...
@@ -20,6 +20,8 @@
#include <mutex>
#include <string>
#include <vector>
#include <memory>
#include <unordered_map>
#include "../workspace_pool.h"
#include "../pack_args.h"
#include "../thread_storage_scope.h"
...
...
src/runtime/opencl/opencl_module.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <memory>
#include <vector>
#include <string>
#include <unordered_map>
#include "../meta_data.h"
namespace
tvm
{
...
...
src/runtime/opencl/sdaccel/sdaccel_common.h
View file @
5e3ceaa0
...
...
@@ -6,6 +6,7 @@
#ifndef TVM_RUNTIME_OPENCL_SDACCEL_SDACCEL_COMMON_H_
#define TVM_RUNTIME_OPENCL_SDACCEL_SDACCEL_COMMON_H_
#include <memory>
#include "../opencl_common.h"
namespace
tvm
{
...
...
src/runtime/opencl/sdaccel/sdaccel_module.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <memory>
#include <vector>
#include <string>
#include <unordered_map>
#include "../../meta_data.h"
namespace
tvm
{
...
...
src/runtime/opengl/opengl_common.h
View file @
5e3ceaa0
...
...
@@ -18,6 +18,7 @@
#include <tuple>
#include <utility>
#include <vector>
#include <memory>
namespace
tvm
{
namespace
runtime
{
...
...
src/runtime/opengl/opengl_module.cc
View file @
5e3ceaa0
...
...
@@ -4,6 +4,7 @@
*/
#include <tvm/runtime/registry.h>
#include <utility>
#include <unordered_map>
#include "opengl_common.h"
#include "opengl_module.h"
#include "../pack_args.h"
...
...
src/runtime/opengl/opengl_module.h
View file @
5e3ceaa0
...
...
@@ -11,6 +11,8 @@
#include <memory>
#include <string>
#include <vector>
#include <utility>
#include <unordered_map>
#include "../meta_data.h"
namespace
tvm
{
...
...
src/runtime/rocm/rocm_module.cc
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include <array>
#include <string>
#include <mutex>
#include <unordered_map>
#include "rocm_module.h"
#include "rocm_common.h"
#include "../pack_args.h"
...
...
src/runtime/rocm/rocm_module.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,7 @@
#include <memory>
#include <vector>
#include <string>
#include <unordered_map>
#include "../meta_data.h"
namespace
tvm
{
...
...
src/runtime/rpc/rpc_session.h
View file @
5e3ceaa0
...
...
@@ -10,6 +10,8 @@
#include <tvm/runtime/device_api.h>
#include <mutex>
#include <string>
#include <memory>
#include <utility>
#include "../../common/ring_buffer.h"
namespace
tvm
{
...
...
src/runtime/sgx/trusted/runtime.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include <tvm/runtime/packed_func.h>
#include <string>
#include <utility>
#include "../common.h"
namespace
tvm
{
...
...
src/runtime/stackvm/stackvm_module.cc
View file @
5e3ceaa0
...
...
@@ -5,6 +5,9 @@
#include <tvm/runtime/registry.h>
#include <tvm/runtime/module.h>
#include <dmlc/memory_io.h>
#include <memory>
#include <utility>
#include <unordered_map>
#include "stackvm_module.h"
#include "../file_util.h"
#include "../module_util.h"
...
...
src/runtime/stackvm/stackvm_module.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include <tvm/runtime/packed_func.h>
#include <string>
#include <unordered_map>
#include "stackvm.h"
namespace
tvm
{
...
...
src/runtime/vulkan/vulkan_common.h
View file @
5e3ceaa0
...
...
@@ -15,6 +15,7 @@
#include <mutex>
#include <string>
#include <vector>
#include <memory>
#include "../workspace_pool.h"
namespace
tvm
{
...
...
src/runtime/workspace_pool.cc
View file @
5e3ceaa0
...
...
@@ -3,6 +3,7 @@
* \file workspace_pool.h
* \brief Workspace pool utility.
*/
#include <memory>
#include "workspace_pool.h"
namespace
tvm
{
...
...
src/runtime/workspace_pool.h
View file @
5e3ceaa0
...
...
@@ -8,6 +8,7 @@
#include <tvm/runtime/device_api.h>
#include <vector>
#include <memory>
namespace
tvm
{
namespace
runtime
{
...
...
src/schedule/graph.cc
View file @
5e3ceaa0
...
...
@@ -6,6 +6,7 @@
#include <tvm/ir.h>
#include <tvm/ir_visitor.h>
#include <tvm/operation.h>
#include <utility>
#include <unordered_set>
#include <unordered_map>
#include "graph.h"
...
...
tests/lint/pylintrc
View file @
5e3ceaa0
...
...
@@ -9,7 +9,7 @@
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS, _cy2, _cy3
ignore=CVS, _cy2, _cy3
, grammar
# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
...
...
topi/include/topi/transform.h
View file @
5e3ceaa0
...
...
@@ -11,6 +11,7 @@
#include <iterator>
#include <algorithm>
#include <limits>
#include <unordered_set>
#include "topi/tags.h"
#include "topi/detail/ravel_unravel.h"
...
...
topi/tests/python/test_topi_upsampling.py
View file @
5e3ceaa0
This diff is collapsed.
Click to expand it.
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