[CI/Build] Fix machete generated kernel files ordering (#8976)

Signed-off-by: kevin <kevin@anyscale.com>
Co-authored-by: Cody Yu <hao.yu.cody@gmail.com>
This commit is contained in:
Kevin H. Luu 2024-09-30 20:33:12 -07:00 committed by GitHub
parent 062c89e7c9
commit aaccca2b4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -457,7 +457,13 @@ def generate():
)), )),
] ]
schedules = list(set([x[1] for x in default_heuristic])) # Do not use schedules = list(set(...)) because we need to make sure
# the output list is deterministic; otherwise the generated kernel file
# will be non-deterministic and causes ccache miss.
schedules = []
for _, schedule_config in default_heuristic:
if schedule_config not in schedules:
schedules.append(schedule_config)
impl_configs = [] impl_configs = []