Skip to content

Commit

Permalink
Merge pull request apache#3 in DATA/tvm from ~WANGXIN66/tvm_clone_fro…
Browse files Browse the repository at this point in the history
…m_data:master to master

* commit 'cd0d52daa6942bdafa9363ff6cfa3d25fcd5b8d6': (824 commits)
  [Intrinsic] Add log1p, ldexp, atan2, hypot, nextafter, copysign (apache#5312)
  [Rust][CI] Restore Rust CI (apache#5137)
  Remove PrimExpr from String (apache#5311)
  [Requantize] Cleanup and Optimize Lowering (apache#5286)
  [IR][TRANSFORM] Enable CopyOnWrite for passes. (apache#5309)
  [PYTORCH]Abs, Arange, Softplus ops (apache#5295)
  [LLVM] Fix generation of LLVM intrinsics (apache#5282)
  [BYOC] Add example of Composite + Annotate for DNNL fused op (apache#5272)
  [Frontend][TensorFlow]Improve TensorFlow Static Shape Tensor Array (apache#5243)
  [RUNTIME] Introduce RValue reference(move) support to TypedPackedFunc (apache#5271)
  [RELAY][FRONTEND][CAFFE2] add Mul and ConvTranspose operator (apache#5302)
  [BYOC] Refine AnnotateTarget and MergeCompilerRegion Passes (apache#5277)
  [CI] Fix the hexagon string (apache#5304)
  [Arith] linear system and equation solver (apache#5171)
  [PYTORCH]Repeat, Reciprocal & Reshape Op support (apache#5280)
  [FRONTEND][TENSORFLOW] Fix gather_nd indices (apache#5279)
  Update device_annotation.cc (apache#5291)
  [REFACTOR][IR] Move to runtime::String (apache#5276)
  [NDArray] Set shape_ in NDArray::FromDLPack (apache#5301)
  [RUNTIME] Initial implementation of Hexagon runtime support (apache#5252)
  ...
  • Loading branch information
chenzhuo06 committed Apr 21, 2020
2 parents a740423 + cd0d52d commit f6767fd
Show file tree
Hide file tree
Showing 2,768 changed files with 206,550 additions and 179,335 deletions.
34 changes: 34 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

github:
description: "Open deep learning compiler stack for cpu, gpu and specialized accelerators"
homepage: https://tvm.apache.org/
labels:
- tvm
- compiler
- tensor
- deep-learning
- gpu
- opencl
- metal
- performance
- javascript
- rocm
- vulkan
- spirv
- machine-learning
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Thanks for contributing to TVM! Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from [Reviewers](https://github.com/dmlc/tvm/blob/master/CONTRIBUTORS.md#reviewers) by @ them in the pull request thread.
Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from [Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @ them in the pull request thread.
79 changes: 79 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# GH actions.
# We use it to cover windows and mac builds
# Jenkins is still the primary CI

name: WinMacBuild

on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
Build:
strategy:
matrix:
os: [windows-latest, macOS-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- name: Lint Python
if: matrix.os == 'macOS-latest'
run: |
pip install flake8
flake8 . --count --select=E9,F63,F7 --show-source --statistics
- name: Initialize submodules
run: git submodule update --recursive --init

- name: Make Build Directory
run: cmake -E make_directory build.common

# configuration for Windows
- name: CMake@Win
if: matrix.os == 'windows-latest'
working-directory: build.common
run: >-
cmake
"-DUSE_SORT=ON"
"-DUSE_RPC=ON"
"-DUSE_GRAPH_RUNTIME=ON"
..
# configuration for Mac
- name: CMake@MacOS
if: matrix.os == 'macOS-latest'
working-directory: build.common
run: >-
cmake
"-DUSE_SORT=ON"
"-DUSE_RPC=ON"
"-DUSE_GRAPH_RUNTIME=ON"
"-DUSE_METAL=ON"
..
- name: Build
run: cmake --build build.common -j3
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ docs/_build/
docs/gen_modules

# PyBuilder
target/
/target/

# IPython Notebook
.ipynb_checkpoints
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "3rdparty/rang"]
path = 3rdparty/rang
url = https://github.com/agauniyal/rang
[submodule "3rdparty/vta-hw"]
path = 3rdparty/vta-hw
url = https://github.com/apache/incubator-tvm-vta
10 changes: 7 additions & 3 deletions 3rdparty/bfloat16/bfloat16.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,23 @@ void BFloat16Add(const uint16_t* a, const uint16_t* b, uint16_t* dst,
}

extern "C" {
TVM_DLL TVM_DLL uint16_t FloatToBFloat16_wrapper(float in) {
TVM_DLL uint16_t FloatToBFloat16_wrapper(float in);
TVM_DLL float BFloat16ToFloat_wrapper(uint16_t in);
TVM_DLL uint16_t BFloat16Add_wrapper(uint16_t a, uint16_t b);

uint16_t FloatToBFloat16_wrapper(float in) {
uint16_t out;
FloatToBFloat16(&in, &out, 1);
return out;
}

TVM_DLL float BFloat16ToFloat_wrapper(uint16_t in) {
float BFloat16ToFloat_wrapper(uint16_t in) {
float out;
BFloat16ToFloat(&in, &out, 1);
return out;
}

TVM_DLL uint16_t BFloat16Add_wrapper(uint16_t a, uint16_t b) {
uint16_t BFloat16Add_wrapper(uint16_t a, uint16_t b) {
uint16_t out;
BFloat16Add(&a, &b, &out, 1);
return out;
Expand Down
39 changes: 0 additions & 39 deletions 3rdparty/cma/Makefile

This file was deleted.

Loading

0 comments on commit f6767fd

Please sign in to comment.