Skip to content

MetaX-MACA/mcTVM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaX TVM: Open Deep Learning Compiler Stack

English | 中文版

logo

GitHub license GitHub tag Documentation

Introduction

Apache TVM is one of the earliest and most successful AI compiler,it can take models from popular deep learning frameworks like pytorch and optimize them for diverse hardware. The TVM community is also highly active and well-documented.

This project(mcTVM) is based on TVM v0.18.0 release, and supports MetaX GPU.

Getting Started

Build From Source

Dependencies:

  • MetaX MACA(MetaX Advanced Compute Architecture) programming environment,follow the 《曦云系列_通用计算GPU_快速上手指南》 from MetaX developer community
  • Other requirements refer to TVM Documents
git clone https://github.com/MetaX-MACA/mcTVM.git mcTVM
cd mcTVM
git submodule update --init --recursive
rm -rf build && mkdir build && cd build
cp ../cmake/config.cmake ./
# USE_MACA is ON by default
cmake ../ && make -j $(nproc)
export TVM_HOME=/path-to-mcTVM
export PYTHONPATH=$TVM_HOME/python:$PYTHONPATH

Using MACA backend

import tvm
# define maca target by kind name
target = tvm.target.Target("maca")
# or specific target by tag name
target = tvm.target.Target("metax/mxc-c500")
# define maca device
dev = tvm.maca()
# or
dev = tvm.device("maca")

Contribute to mcTVM

check out the CONTRIBUTING.md

About

Open deep learning compiler stack for cpu, gpu and specialized accelerators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.8%
  • C++ 43.3%
  • Shell 0.8%
  • CMake 0.7%
  • Cuda 0.6%
  • TypeScript 0.5%
  • Other 1.3%