Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastMoE
Commits
5a5dfa18
Unverified
Commit
5a5dfa18
authored
Jul 18, 2022
by
Rick Ho
Committed by
GitHub
Jul 18, 2022
Browse files
Merge pull request #123 from laekov/torch-v1.12.0-compat
Fix nccl uid bcast for torch v1.12.0
parents
9a01f8fa
a0b1e31a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
cuda/global_exchange.cpp
cuda/global_exchange.cpp
+6
-0
No files found.
cuda/global_exchange.cpp
View file @
5a5dfa18
...
@@ -109,6 +109,12 @@ public:
...
@@ -109,6 +109,12 @@ public:
ncclGetUniqueId
(
&
ncclID
);
ncclGetUniqueId
(
&
ncclID
);
}
}
#if defined(TORCH_VERSION_MAJOR) && (TORCH_VERSION_MAJOR > 1 || \
#if defined(TORCH_VERSION_MAJOR) && (TORCH_VERSION_MAJOR > 1 || \
(TORCH_VERSION_MAJOR == 1 && TORCH_VERSION_MINOR >= 12))
broadcastUniqueNCCLID
(
&
ncclID
,
false
,
"fastmoe_nccl_comm"
,
rank
);
#elif defined(TORCH_VERSION_MAJOR) && (TORCH_VERSION_MAJOR > 1 || \
(TORCH_VERSION_MAJOR == 1 && TORCH_VERSION_MINOR >= 8))
(TORCH_VERSION_MAJOR == 1 && TORCH_VERSION_MINOR >= 8))
broadcastUniqueNCCLID
(
&
ncclID
,
broadcastUniqueNCCLID
(
&
ncclID
,
c10d
::
OpType
::
SEND
,
c10d
::
OpType
::
SEND
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment