MCPcopy Index your code
hub / github.com/apache/tvm / build_cutlass

Function build_cutlass

tests/python/relax/test_codegen_cutlass.py:114–124  ·  view source on GitHub ↗
(mod, assert_all_bindings_fused=True, num_final_bindings=1)

Source from the content-addressed store, hash-verified

112
113
114def build_cutlass(mod, assert_all_bindings_fused=True, num_final_bindings=1):
115 mod = partition_for_cutlass(mod)
116
117 if assert_all_bindings_fused:
118 assert len(mod["main"].body.blocks[0].bindings) == num_final_bindings, (
119 "Not all bindings are fused. " + str(mod["main"])
120 )
121
122 codegen_pass = relax.transform.RunCodegen({"cutlass": {"sm": 80, "find_first_valid": True}})
123 mod = codegen_pass(mod)
124 return mod
125
126
127def get_result_with_relax_cutlass_offload(

Callers 2

test_conv2d_dynamicFunction · 0.85

Calls 2

partition_for_cutlassFunction · 0.90
strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…