Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ort_mutex.h and nsync #22485

Closed
wants to merge 4 commits into from
Closed

Remove ort_mutex.h and nsync #22485

wants to merge 4 commits into from

Conversation

snnn
Copy link
Member

@snnn snnn commented Oct 17, 2024

In PR #3000 , I added a custom implementation of std::mutex . It was mainly because at that time std::mutex's default constructor was not trivial on Windows. If you had such a mutex as a global var, it could not be initialized at compile time. Then VC++ team fixed this issue. Therefore we don't need this custom implementation anymore.

This PR also removes nsync. I ran several models tests on Linux. I didn't see any perf difference.
This PR also reverts PR #21005 , which is no longer needed since conda has updated its msvc runtime DLL.

This PR unblocks #22173 and resolves #22092

@snnn snnn force-pushed the snnn/remove_lock branch from 9a43c2c to bf8f057 Compare October 17, 2024 21:45
@snnn snnn force-pushed the snnn/remove_lock branch from d8f038f to ac3fc9b Compare October 18, 2024 00:42
@snnn snnn marked this pull request as ready for review October 18, 2024 00:42
@snnn snnn requested a review from a team as a code owner October 18, 2024 00:42
@snnn snnn closed this Oct 18, 2024
@snnn snnn deleted the snnn/remove_lock branch October 22, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Build] cannot create ALIAS target "nsync::nsync_cpp"
1 participant