tlc-pack / relax

Apache License 2.0
193 stars 58 forks source link

[Tracking Issue] Relax graph-level BYOC #364

Open masahi opened 1 year ago

masahi commented 1 year ago

I've been working on bringing up BYOC infra in Relax, building on the work of @sunggg and the pattern matcher work from @ganler. The ultimate goal is to make relax.vm.build(mod, "cuda") just work without tuning and with reasonable out-of-the-box performance. Also it would be the first step toward performant dynamic-shape support.

My branch is here and currently I have minimal test cases for offloading a simple subgraph to DNNL and CUTLASS. I'm going to start sending pieces from it from today. https://github.com/tlc-pack/relax/compare/relax...masahi:codegen-cutlass?expand=1

Future possibilities (time permitting)

@sunggg @YuchenJin @tqchen @junrushao