Skip to content

Update TVM backend to TVM 0.26.x - #118

Open
guillon wants to merge 1 commit into
xtc-tools:mainfrom
guillon:dev/cguillon/tvm-026
Open

Update TVM backend to TVM 0.26.x#118
guillon wants to merge 1 commit into
xtc-tools:mainfrom
guillon:dev/cguillon/tvm-026

Conversation

@guillon

@guillon guillon commented Aug 28, 2026

Copy link
Copy Markdown
Member

Motivation

Update to recent version of TVM which should support split. Move from tvm 0.19 to tvm 0.26.

Note that the legacy TE Scheduler is not supported anymore in this version of TVM, hence the XTC tvm backend changed to support only TIR Schedule (tir_schedule TVM backend option defaults now to True).

Description

Update TVMCompiler and TVMScheduler for the new TVM version.

Update runtime support which changed with the new TVM version: now using tvm_runtime.so and tvm_ffi.so.

Update to upstream official tvm packages: apache_tvm and apache_tvm_ffi instead of our own built tvm package, this deprecates for now the xtc-tools/tvm-wheels repository which is not necessary anymore.

Update tests as the outputed TVM IR changed from TVM 0.19 to TVM 0.26.

Commits

Ref to last commit

Discussion

n/a

@guillon guillon self-assigned this Aug 28, 2026
@guillon guillon added the enhancement New feature or request label Aug 28, 2026
@guillon
guillon force-pushed the dev/cguillon/tvm-026 branch 10 times, most recently from b76e945 to 610dd99 Compare August 28, 2026 16:04
@guillon
guillon marked this pull request as ready for review August 28, 2026 16:05
@guillon

guillon commented Aug 28, 2026

Copy link
Copy Markdown
Member Author

@qaco @liamsemeria for information, update to TVM 0.26 and use directly apache tvm packages instead of our own xtc-tvm-wheels.

I will merge when ok, though you may comment.

@guillon
guillon force-pushed the dev/cguillon/tvm-026 branch from 610dd99 to 55e60cd Compare August 28, 2026 16:19
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.15768% with 43 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/xtc/backends/tvm/TVMCompiler.py 82.73% 19 Missing and 5 partials ⚠️
src/xtc/utils/host_tools.py 52.00% 8 Missing and 4 partials ⚠️
src/xtc/utils/cfunc.py 91.83% 3 Missing and 1 partial ⚠️
src/xtc/targets/host/HostCEvaluator.py 25.00% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@guillon
guillon force-pushed the dev/cguillon/tvm-026 branch 2 times, most recently from f749476 to 6afa2b7 Compare August 28, 2026 22:10
@qaco

qaco commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@qaco @liamsemeria for information, update to TVM 0.26 and use directly apache tvm packages instead of our own xtc-tvm-wheels.

I will merge when ok, though you may comment.

Wow that's nice!

@guillon
guillon force-pushed the dev/cguillon/tvm-026 branch 10 times, most recently from e9b1801 to 0c9fb2a Compare September 1, 2026 15:24
@guillon
guillon force-pushed the dev/cguillon/tvm-026 branch from 0c9fb2a to 9a87291 Compare September 1, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants