forked from pytorch/pytorch
-
Couldn't load subscription status.
- Fork 74
Setup rccl for pytorch [REDUX] #347
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
Merged
iotamudelta
merged 7 commits into
ROCm:master
from
jithunnair-amd:setup_rccl_for_pytorch_redux
Feb 16, 2019
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e0f617f
Reworked changes for rccl integration on top of latest pytorch master
jithunnair-amd 252e38e
Remove nccl dependency for ROCm
jithunnair-amd 74de720
Skip test_nn data_parallel unit tests on ROCm since they currently fa…
jithunnair-amd 3759615
Update some comments based on review
jithunnair-amd 928174f
Skip test_cuda coalesced tests on ROCm since they currently fail with…
jithunnair-amd 7574ad5
Merge branch 'master' into setup_rccl_for_pytorch_redux
jithunnair-amd 7765689
Merge branch 'master' into setup_rccl_for_pytorch_redux
jithunnair-amd 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
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
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
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
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
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
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 |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| #ifndef RCCL1_COMPAT_H | ||
| #define RCCL1_COMPAT_H | ||
|
|
||
| #include <rccl.h> | ||
|
|
||
| #ifndef RCCL_MAJOR // RCCL 1.x | ||
| #define RCCL_MAJOR 1 | ||
| #define RCCL_MINOR 0 | ||
|
|
||
| #define rcclNumOps rccl_NUM_OPS | ||
| #define rcclNumTypes rccl_NUM_TYPES | ||
|
|
||
| static rcclResult_t rcclGroupStart() { return rcclSuccess; } | ||
| static rcclResult_t rcclGroupEnd() { return rcclSuccess; } | ||
|
|
||
| #define CHECKCOUNT(count) if (count > INT_MAX) return rcclInvalidArgument; | ||
|
|
||
| /* | ||
| static rcclResult_t rcclReduce(const void* sendbuff, void* recvbuff, size_t count, rcclDataType_t datatype, | ||
| rcclRedOp_t op, int root, rcclComm_t comm, hipStream_t stream) { | ||
| CHECKCOUNT(count); | ||
| return rcclReduce(sendbuff, recvbuff, (int)count, datatype, op, root, comm, stream); | ||
| } | ||
| static rcclResult_t rcclAllReduce(const void* sendbuff, void* recvbuff, size_t count, | ||
| rcclDataType_t datatype, rcclRedOp_t op, rcclComm_t comm, hipStream_t stream) { | ||
| CHECKCOUNT(count); | ||
| return rcclAllReduce(sendbuff, recvbuff, (int)count, datatype, op, comm, stream); | ||
| } | ||
| static rcclResult_t rcclBcast(void* buff, size_t count, rcclDataType_t datatype, int root, | ||
| rcclComm_t comm, hipStream_t stream) { | ||
| CHECKCOUNT(count); | ||
| return rcclBcast(buff, (int)count, datatype, root, comm, stream); | ||
| } | ||
| static rcclResult_t rcclReduceScatter(const void* sendbuff, void* recvbuff, | ||
| size_t recvcount, rcclDataType_t datatype, rcclRedOp_t op, rcclComm_t comm, | ||
| hipStream_t stream) { | ||
| CHECKCOUNT(recvcount); | ||
| return rcclReduceScatter(sendbuff, recvbuff, (int)recvcount, datatype, op, comm, stream); | ||
| } | ||
| */ | ||
| static rcclResult_t rcclAllGather(const void* sendbuff, void* recvbuff, size_t sendcount, | ||
| rcclDataType_t datatype, rcclComm_t comm, hipStream_t stream) { | ||
| CHECKCOUNT(sendcount); | ||
| return rcclAllGather(sendbuff, (int)sendcount, datatype, recvbuff, comm, stream); | ||
| } | ||
| #endif | ||
|
|
||
| #endif |
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.
for my education: why is it not?
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.
rccl doesn't have one.
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.
Cool - can we get that adjusted?