MasterJH5574 opened a new pull request, #16605: URL: https://github.com/apache/tvm/pull/16605
This PR fixes a bug where metal runtime cannot be accessed from multiple threads. This is because the ThreadLocal entry initialization happens during global workspace initialization, meaning other threads that tries to use metal runtime later cannot have the thread local entry correctly initialized. This PR fixes the problem by always use nullptr fallback and lookup at the global workspace for default stream. --- Co-authored-by: Tianqi Chen <[email protected]> -- 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]
