(mod, assert_all_bindings_fused=True, num_final_bindings=1)
| 112 | |
| 113 | |
| 114 | def 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 | |
| 127 | def get_result_with_relax_cutlass_offload( |
no test coverage detected
searching dependent graphs…