You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Gilles Miet via Apache TVM Discuss <no...@discuss.tvm.ai> on 2022/03/10 16:40:56 UTC

[Apache TVM Discuss] [Questions] [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





---
[Visit Topic](https://discuss.tvm.apache.org/t/aot-ordering-of-functions-definition-is-random/12287/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/bbf651945a0137df01f99e97b90f0314ec6773ae3daf9fb71b0c5ea44285e69a).

[Apache TVM Discuss] [Questions] [AOT] Ordering of functions definition is random

Posted by Mehrdad Hessar via Apache TVM Discuss <no...@discuss.tvm.ai>.

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.
https://github.com/apache/tvm/issues/10568





---
[Visit Topic](https://discuss.tvm.apache.org/t/aot-ordering-of-functions-definition-is-random/12287/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/44b45da5956f4f6b4cc3f7888511902007e4731623342bfcb7eb7b819b147d66).

[Apache TVM Discuss] [Questions] [AOT] Ordering of functions definition is random

Posted by Gilles Miet via Apache TVM Discuss <no...@discuss.tvm.ai>.

@mehrdadh Big thank for the fix !





---
[Visit Topic](https://discuss.tvm.apache.org/t/aot-ordering-of-functions-definition-is-random/12287/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/70ad442777ec3f46196e48584c7c2b504000e394ce6d41be0a9ad9c73c32e93e).