mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
Skip BLOCK_SIZE that is too large compare to M/N (#449)
This commit is contained in:
@@ -68,6 +68,9 @@ def prune_configs(M, N, K, configs):
|
||||
continue
|
||||
if N <= mfma and BLOCK_SIZE_N != mfma:
|
||||
continue
|
||||
# Skip BLOCK_SIZE that is too large compare to M/N
|
||||
if BLOCK_SIZE_M > M * 2 or BLOCK_SIZE_N > N * 2:
|
||||
continue
|
||||
# skip large split_k when not necessary
|
||||
if SPLIT_K != 1 and not need_split_k(M, N, K):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user