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

fix multithread bug in env #5283

Merged
merged 7 commits into from
Jun 29, 2021
Merged

Conversation

liufengwei0103
Copy link
Contributor

No description provided.

Comment on lines 181 to 183
const auto& iter = device2parallel_desc_.find(device);
if (iter != device2parallel_desc_.end()) { return iter->second; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

放在局部作用域里,同样需要加锁。

@liufengwei0103 liufengwei0103 requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 28, 2021 07:01
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 29, 2021 07:34
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 29, 2021 07:52
@oneflow-ci-bot oneflow-ci-bot merged commit ac777fe into master Jun 29, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the fix_multithread_bug_in_env branch June 29, 2021 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants