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 Multi-GPU join for horovod #6954

Merged
merged 12 commits into from
Apr 13, 2021
Merged

Fix Multi-GPU join for horovod #6954

merged 12 commits into from
Apr 13, 2021

Conversation

irasit
Copy link
Contributor

@irasit irasit commented Apr 11, 2021

Horovd's join required local rank as argument for multi-gpu cases, code here
The default join only works for cpu.

Partly fixes #6935
edit: does not seem like any skipped tests were fixed

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

@codecov
Copy link

codecov bot commented Apr 11, 2021

Codecov Report

Merging #6954 (59188cb) into master (b9bc772) will decrease coverage by 5%.
The diff coverage is 10%.

@@           Coverage Diff           @@
##           master   #6954    +/-   ##
=======================================
- Coverage      92%     87%    -5%     
=======================================
  Files         194     194            
  Lines       12329   12333     +4     
=======================================
- Hits        11325   10673   -652     
- Misses       1004    1660   +656     

@awaelchli
Copy link
Contributor

awaelchli commented Apr 11, 2021

Thanks for the fix <3
I wonder if this solves any of the existing tests that we currently skip. We should try to undo the skip for some of these cpu tests to see if your PR resolves that.
See #6935 for a list.

@awaelchli awaelchli added bug Something isn't working distributed Generic distributed-related topic labels Apr 12, 2021
@irasit
Copy link
Contributor Author

irasit commented Apr 12, 2021

Thanks for the fix <3
I wonder if this solves any of the existing tests that we currently skip. We should try to undo the skip for some of these cpu tests to see if your PR resolves that.
See #6935 for a list.

Thank you for the reply. I do not think it related to the skipped tests, but seems related to this one, wonder why the issue was not caught by this test before.
The issue is reproducible when I run my test with multiple gpu (not reproducible if only run in cpu). In this test, petastorm reader and spark estimator is used.

Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

shall we reenable Horovod tests back?

@awaelchli awaelchli added the priority: 0 High priority task label Apr 12, 2021
@awaelchli awaelchli mentioned this pull request Apr 12, 2021
11 tasks
@awaelchli awaelchli added the ready PRs ready to be merged label Apr 12, 2021
@mergify mergify bot removed the has conflicts label Apr 13, 2021
@mergify mergify bot removed the has conflicts label Apr 13, 2021
Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

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

LGTM ! Thanks for your contribution.

@tchaton tchaton merged commit 89074fa into Lightning-AI:master Apr 13, 2021
awaelchli added a commit that referenced this pull request Apr 21, 2021
* fixjoin

* fix join on cpu

* fix typo

* try to undo horovod skip

* undo

* Try removing skip

* Update CHANGELOG

* add back skip for test_horovod_multi_optimizer

* Add back skip

Co-authored-by: Adrian Wälchli <[email protected]>
Co-authored-by: Carlos Mocholi <[email protected]>
lexierule pushed a commit that referenced this pull request Apr 22, 2021
* fixjoin

* fix join on cpu

* fix typo

* try to undo horovod skip

* undo

* Try removing skip

* Update CHANGELOG

* add back skip for test_horovod_multi_optimizer

* Add back skip

Co-authored-by: Adrian Wälchli <[email protected]>
Co-authored-by: Carlos Mocholi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distributed Generic distributed-related topic priority: 0 High priority task ready PRs ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve several Horovod test failures
5 participants