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
976ef2b8
Unverified
Commit
976ef2b8
authored
Sep 30, 2021
by
hclearner
Committed by
GitHub
Sep 30, 2021
Browse files
Update local_exchange.cuh
parent
2a77b772
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cuda/local_exchange.cuh
cuda/local_exchange.cuh
+2
-2
No files found.
cuda/local_exchange.cuh
View file @
976ef2b8
...
@@ -28,7 +28,7 @@ void fmoe_cuda_assign_pos_impl(
...
@@ -28,7 +28,7 @@ void fmoe_cuda_assign_pos_impl(
#define PERTHREAD_EXPERTS 256
#define PERTHREAD_EXPERTS 256
#ifdef MOE_HIP
_DIFF
#ifdef
F
MOE_
USE_
HIP
#define WARP_SIZE 64
#define WARP_SIZE 64
#else
#else
#define WARP_SIZE 32
#define WARP_SIZE 32
...
@@ -57,7 +57,7 @@ void expert_count_kernel(const long* gate_idx, int* expert_count,
...
@@ -57,7 +57,7 @@ void expert_count_kernel(const long* gate_idx, int* expert_count,
int
x
=
res_tmp
[
i
-
expert_min
];
int
x
=
res_tmp
[
i
-
expert_min
];
#pragma unroll
#pragma unroll
for
(
int
j
=
1
;
j
<
WARP_SIZE
;
j
<<=
1
)
{
for
(
int
j
=
1
;
j
<
WARP_SIZE
;
j
<<=
1
)
{
#ifdef MOE_HIP
_DIFF
#ifdef
F
MOE_
USE_
HIP
x
=
x
+
__shfl_down
(
x
,
j
);
x
=
x
+
__shfl_down
(
x
,
j
);
#else
#else
x
=
x
+
__shfl_down_sync
(
-
1u
,
x
,
j
);
x
=
x
+
__shfl_down_sync
(
-
1u
,
x
,
j
);
...
...
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