MasterJH5574 opened a new pull request, #15478: URL: https://github.com/apache/tvm/pull/15478
This PR fixes an issue of the ThreadSync pass. Prior to this PR, the pass is not aware of `shared.dyn` scope whose users all share a same shared memory space. This feature is not necessarily already revealed in the IR at the time of applying ThreadSync. This means that when applying ThreadSync, in the IR, each buffer of `shared.dyn` scope still uses its own data Var, and ThreadSync is thus unable to detect the conflict properly and insert the sync instructions properly. This PR explicitly makes ThreadSync be aware of the `shared.dyn` scope, and redirect all the access vars of `shared.dyn` memory to a common var, so that ThreadSync analysis can find out the conflict and insert the sync instructions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
