Go to file
Five-HZ e4274b0b07
[MetaXGPU][FFI] Using tvm-ffi interface for MACA target (#15)
2026-02-06 18:10:00 +08:00
.github Merge branch 'main' of https://github.com/apache/tvm into main 2026-02-04 18:30:48 +08:00
3rdparty [DataType] Update to use explicit Bool Type Aligning with DLPack (#18453) 2025-11-14 20:47:42 -05:00
apps [FFI][ABI] Bump version ffi to latest (#18332) 2025-09-23 19:50:16 -07:00
ci [CI] Remove hardcoded user and repo values (#18549) 2025-12-05 13:49:10 -05:00
cmake Merge branch 'main' of https://github.com/apache/tvm into main 2026-02-04 18:30:48 +08:00
conda [release] Update version to 0.23.dev0 on main branch 2025-10-21 12:27:10 +08:00
docker [CI] Update file patterns for specific linting hooks (#18484) 2025-11-30 00:12:42 -05:00
docs [Docs] Improve static shape tuning parameter configuration (follow-up to commit c71aefc) (#18545) 2025-12-07 00:28:46 +02:00
imgs [MetaXGPU] Support MetaXGPU as backend in tvm via MXMACA stack (#6) 2025-07-11 14:15:44 +08:00
include/tvm Merge branch 'main' of https://github.com/apache/tvm into main 2026-02-04 18:30:48 +08:00
jvm [REFACTOR][FFI] Split tvm-ffi into a separate repo (#18314) 2025-09-14 06:58:43 -04:00
licenses [FFI][REFACTOR] Establish tvm_ffi python module (#18226) 2025-08-24 15:46:20 -07:00
python [MetaXGPU][FFI] Using tvm-ffi interface for MACA target (#15) 2026-02-06 18:10:00 +08:00
src [MetaXGPU][FFI] Using tvm-ffi interface for MACA target (#15) 2026-02-06 18:10:00 +08:00
tests Merge branch 'main' of https://github.com/apache/tvm into main 2026-02-04 18:30:48 +08:00
web [Relax][PyTorch] Unify tests using shared tvm.testing.assert_allclose (#18522) 2025-11-29 00:51:52 -05:00
.asf.yaml [DOCS] Update the merge setting (#18451) 2025-11-14 11:59:18 -05:00
.clang-format add .clang-format (#2395) 2019-01-08 13:08:13 -08:00
.gitattributes [ci] Split Jenkinsfile into platform-specific jobs (#13300) 2022-12-06 13:52:31 -08:00
.gitignore [TIR][Schedule] FuseReductionEpilogue: Add Clipping pattern support (#18515) 2025-12-25 20:27:23 +08:00
.gitmodules [3rdparty] Remove dlpack/libbacktrace from 3rdparty (#18318) 2025-09-15 19:52:11 -04:00
.pre-commit-config.yaml [CI] Update file patterns for specific linting hooks (#18484) 2025-11-30 00:12:42 -05:00
CMakeLists.txt Merge branch 'main' of https://github.com/apache/tvm into main 2026-02-04 18:30:48 +08:00
CONTRIBUTING.md [MetaXGPU] Support MetaXGPU as backend in tvm via MXMACA stack (#6) 2025-07-11 14:15:44 +08:00
CONTRIBUTING_ZH.md [MetaXGPU] Support MetaXGPU as backend in tvm via MXMACA stack (#6) 2025-07-11 14:15:44 +08:00
CONTRIBUTORS.md [Community] update contributors (#17450) 2024-10-08 13:23:04 -04:00
KEYS [COMMUNITY] Add new key for release signing (#16695) 2024-03-10 16:08:30 -04:00
LICENSE [ADRENO][WINDOWS] Windows build dependencies for Adreno target 2025-01-26 09:32:52 -05:00
Makefile [3rdparty] Remove dlpack/libbacktrace from 3rdparty (#18318) 2025-09-15 19:52:11 -04:00
NOTICE Add codegen test case (#10) 2025-07-25 09:55:18 +08:00
README.md [DOCS] Update the merge setting (#18451) 2025-11-14 11:59:18 -05:00
README_TVM.md [MetaXGPU] Support MetaXGPU as backend in tvm via MXMACA stack (#6) 2025-07-11 14:15:44 +08:00
README_ZH.md [MetaXGPU] Support MetaXGPU as backend in tvm via MXMACA stack (#6) 2025-07-11 14:15:44 +08:00
conftest.py [REFACTOR] Phase out te.Schedule c++ components (#17662) 2025-02-17 17:03:09 -05:00
mypy.ini [ci] Lint for trailing newlines and spaces (#13058) 2022-10-18 23:36:35 -07:00
pyproject.toml [release] Update version to 0.23.dev0 on main branch 2025-10-21 12:27:10 +08:00
version.py [release] Update version to 0.23.dev0 on main branch 2025-10-21 12:27:10 +08:00

README.md

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 compilerit 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 environmentfollow 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