I agree with @ajtulloch that perhaps it would be helpful to explore if we can do that automatically.
For exmaple, we could write a custom pass that insert necessary memory fence(via a custom pass) when detecting the RW dependencies between the scratch pad and the data(when they corresponds to a different storage scope) --- [Visit Topic](https://discuss.tvm.ai/t/add-support-for-extern-prologue-epilogue-functions/6041/7) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/2c667642f9b08114235cf9091e34ac9054fcae20f3e8560ee80dfc0c425856cc).