Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion python/tvm/contrib/cutlass/gen_conv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ def alignments(dtype):
raise ValueError("Unsupported data type: %s" % dtype)
return alignments

alignments_c = [align for align in alignments(out_dtype) if OC % align == 0]

if not profile_all_alignments:
alignments_c = [alignments_c[0]]

ops = GENERATOR_FUNC_TABLE[self.sm](
out_dtype,
data_dtype,
Expand All @@ -294,7 +299,7 @@ def alignments(dtype):
conv_kind,
stride_support,
split_k_slices,
[align for align in alignments(out_dtype) if OC % align == 0],
alignments_c,
),
lambda align: all([dim % align == 0 for dim in [IC]]),
use_3xtf32,
Expand Down