[Bugfix][CI] Machete kernels: deterministic ordering for more cache hits (#23055)

Signed-off-by: Andy Lo <andy@mistral.ai>
This commit is contained in:
Andy Lo 2025-08-18 07:10:26 +02:00 committed by GitHub
parent 9f1c642254
commit b2fd0b81e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,9 +349,12 @@ def to_cute_constant(value: list[int]):
def unique_schedules(impl_configs: list[ImplConfig]):
return list(
set(sch for impl_config in impl_configs
for sch in impl_config.schedules))
# Use dict over set for deterministic ordering
return list({
sch: None
for impl_config in impl_configs
for sch in impl_config.schedules
}.keys())
def unsigned_type_with_bitwidth(num_bits):