forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
internal review #6
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
Open
Chao1Han
wants to merge
33
commits into
main
Choose a base branch
from
xccl-bak2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
652da01
Xccl process group for Pytorch
Chao1Han 0cb0016
Merge remote-tracking branch 'upstream/main' into xccl-bak
Chao1Han a71d69a
Align latest
Chao1Han af6f03c
hidden env
Chao1Han 88bea25
refine findccl code
Chao1Han f6ea934
Add comments for build xccl
Chao1Han 1226e3b
refine workxccl
Chao1Han d62e0be
refine timeout
Chao1Han 714de2a
rm head
Chao1Han 0923781
update
Chao1Han 31d092d
minor fix
Chao1Han cbea299
rm duplicate code and refine cmake
Chao1Han ef261c6
update cmake
Chao1Han 6c648cd
hidden xccl specific
Chao1Han e621fe6
fix ci fail
Chao1Han 3f225d9
rm vir fun and modify tensor check
Chao1Han 1138a4a
Merge branch 'xccl-bak' into xccl-bak2
Chao1Han 8e5e78a
refine collective, getcomm
Chao1Han 1267963
accept comments
Chao1Han 3d55b85
rm attr
Chao1Han f69059a
add default ccl root dir
Chao1Han bed720c
update
Chao1Han fd44abe
update
Chao1Han d12b922
code refine
zhangxiaoli73 b57e812
minor fix
Chao1Han 5968f0f
update
Chao1Han edba8aa
update
Chao1Han 56a5e7f
Refine specific code
Chao1Han a062f9f
accept comments
Chao1Han ae90994
Merge branch 'xccl-bak' into xccl-bak2
Chao1Han ab04fc0
rm header and refine profilehead
Chao1Han 4ee49fb
add get_device_count
Chao1Han 1a2c9c2
add backendSupportsSequenceNumbers
Chao1Han File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,17 +67,15 @@ ccl::reduction getXcclReduceOp(const ReduceOp& reduceOp, at::Tensor& input) { | |
return xcclOps.at(reduceOp); | ||
} catch (const std::out_of_range&) { | ||
switch (reduceOp) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to |
||
case ReduceOp::AVG: | ||
C10_THROW_ERROR(ValueError, "Cannot use ReduceOp AVG with XCCL"); | ||
break; | ||
case ReduceOp::BAND: | ||
C10_THROW_ERROR(ValueError, "Cannot use ReduceOp.BAND with XCCL"); | ||
break; | ||
case ReduceOp::BOR: | ||
C10_THROW_ERROR(ValueError, "Cannot use ReduceOp.BOR with XCCL"); | ||
break; | ||
case ReduceOp::BXOR: | ||
C10_THROW_ERROR(ValueError, "Cannot use ReduceOp.BXOR with XCCL"); | ||
case c10d::ReduceOp::BAND: | ||
case c10d::ReduceOp::BOR: | ||
case c10d::ReduceOp::BXOR: | ||
case c10d::ReduceOp::AVG: | ||
case c10d::ReduceOp::PREMUL_SUM: | ||
C10_THROW_ERROR( | ||
ValueError, | ||
"Cannot use ReduceOp." + reduce_op_to_string(reduceOp) + | ||
" with XCCL"); | ||
break; | ||
default: | ||
C10_THROW_ERROR(ValueError, "Unhandled ReduceOp"); | ||
|
@@ -133,7 +131,6 @@ void ProcessGroupXCCL::WorkXCCL::synchronizeInternal( | |
auto currentTimepoint = std::chrono::steady_clock::now(); | ||
auto timeElapsed = std::chrono::duration_cast<std::chrono::milliseconds>( | ||
currentTimepoint - workStartTime_); | ||
std::chrono::milliseconds opTimeout = std::chrono::milliseconds(60000); | ||
if (timeElapsed >= timeout) { | ||
std::string exceptionMsg = c10::str( | ||
"Work ran for ", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't change NCCL now.