[AOT] Ordering of functions definition is random

Hi, I noticed that, when generating AOT code, the order of the functions definition is random. So if I launch twice the same AOT generation, I get differences in produced C files due to this random ordering that makes change tracking rather difficult. Do you know why TVM AOT codegen behaves like this ? Can you tell me if there is a way to make this order deterministic (e.g. some seeds to be defined somewhere) ? Thank you very much, Gilles

Thanks @gilfr06 for reporting this. I don’t have an answer why this happens at the moment, but I have filed an issue for it and we will work on it.

1 Like

@mehrdadh Big thank for the fix !

1 Like