MCPcopy Index your code
hub / github.com/BBuf/tvm_mlir_learn

github.com/BBuf/tvm_mlir_learn @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
194 symbols 575 edges 85 files 5 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tvm_mlir_learn

Learning notes and experiments for deep learning compilers.

This repository collects examples around TVM, MLIR, LLVM, TorchScript, Relay, code generation, scheduling, and compiler-guided kernel optimization. It is kept as a public learning archive for AI compiler systems.

Contents

  • scheduler/: TVM scheduler examples and scheduling experiments.
  • dataflow_controlflow/: small examples comparing data flow and control flow concepts.
  • paper_reading/: notes for compiler and ML systems papers such as PET, Ansor, and MLIR-related work.
  • relay/: Relay examples, custom pass experiments, and model deployment demos.
  • codegen/: TVM code generation examples based on tensor expressions and Relay IR.
  • torchscript/: TorchScript usage examples.
  • optimize_gemm/: GEMM optimization experiments guided by compiler ideas.
  • compile_tvm_in_docker.md: TVM build notes in Docker.

Related Repositories

  • CUDA and GPU optimization: https://github.com/BBuf/how-to-optim-algorithm-in-cuda
  • Deep learning framework notes: https://github.com/BBuf/how-to-learn-deep-learning-framework

Status

Legacy learning archive. I may still reference this repository, but new public-facing documentation will use English entry points.

Core symbols most depended-on inside this repo

smtl_add_task
called by 18
optimize_gemm/cpufp/smtl.c
smtl_begin_tasks
called by 18
optimize_gemm/cpufp/smtl.c
smtl_wait_tasks_finished
called by 18
optimize_gemm/cpufp/smtl.c
AddDot
called by 16
optimize_gemm/how_to_optimize_gemm/MMult_4x4_3.h
get_time
called by 9
optimize_gemm/cpufp/cpufp_x86.c
cpuid_x86_support
called by 5
optimize_gemm/cpufp/cpuid_x86.cpp
smtl_init
called by 4
optimize_gemm/cpufp/smtl.c
smtl_fini
called by 4
optimize_gemm/cpufp/smtl.c

Shape

Function 165
Class 18
Method 9
Enum 2

Languages

Python44%
C++36%
C21%

Modules by API surface

optimize_gemm/cpufp/cpufp_x86.c16 symbols
optimize_gemm/cpufp/smtl.c15 symbols
relay/use_pass_infra.py8 symbols
optimize_gemm/sgemm_kernel/main.c8 symbols
optimize_gemm/how_to_optimize_gemm/test_matrix_multiply.cpp6 symbols
relay/jetsonnano/server_rpc_tune.py5 symbols
relay/jetsonnano/server_cross_compile.py5 symbols
relay/jetsonnano/jetson_detect_video.py5 symbols
optimize_gemm/optimize_matmul_in_gemm/tvm_autotvm_tune.py5 symbols
optimize_gemm/optimize_matmul_in_gemm/tvm_autoschedule_tune.py5 symbols
optimize_gemm/how_to_optimize_gemm/MMult_4x4_14.h5 symbols
optimize_gemm/how_to_optimize_gemm/MMult_4x4_13.h5 symbols

For agents

$ claude mcp add tvm_mlir_learn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact