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
11369d67
Unverified
Commit
11369d67
authored
Jun 29, 2021
by
Jiezhong Qiu
Committed by
GitHub
Jun 29, 2021
Browse files
Merge pull request #56 from laekov/older-pytorch-compatibility
Fix pytorch compatibility issue !55
parents
7d41fe88
9170835c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
cuda/global_exchange.cpp
cuda/global_exchange.cpp
+5
-0
cuda/utils/helper_cuda.h
cuda/utils/helper_cuda.h
+1
-0
No files found.
cuda/global_exchange.cpp
View file @
11369d67
...
...
@@ -81,10 +81,15 @@ public:
if
(
rank
==
0
)
{
ncclGetUniqueId
(
&
ncclID
);
}
#if defined(TORCH_VERSION_MAJOR) && (TORCH_VERSION_MAJOR > 1 || \
(TORCH_VERSION_MAJOR == 1 && TORCH_VERSION_MINOR >= 8))
broadcastUniqueNCCLID
(
&
ncclID
,
c10d
::
OpType
::
SEND
,
"fastmoe_nccl_comm"
,
rank
);
#else
broadcastUniqueNCCLID
(
&
ncclID
);
#endif
ncclComm_t
comm
;
NCCL_SAFE_CALL
(
ncclCommInitRank
(
&
comm
,
getSize
(),
ncclID
,
rank
));
return
comm
;
...
...
cuda/utils/helper_cuda.h
View file @
11369d67
...
...
@@ -32,6 +32,7 @@
#include <cuda_runtime.h>
#include <cublas_v2.h>
#include <stdio.h>
#include <stdlib.h>
#ifndef HELPER_CUDA_H
#define HELPER_CUDA_H
...
...
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