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
560d3f1b
Commit
560d3f1b
authored
Dec 30, 2020
by
Jiezhong Qiu
Browse files
sync every stream
parent
610752d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pytorch/cuda/moe_cuda_kernel.cu
pytorch/cuda/moe_cuda_kernel.cu
+3
-1
No files found.
pytorch/cuda/moe_cuda_kernel.cu
View file @
560d3f1b
...
@@ -216,7 +216,9 @@ void moe_cuda_grad_weight(
...
@@ -216,7 +216,9 @@ void moe_cuda_grad_weight(
grad_weight
+
gate_host
[
i
]
*
out_feat
*
in_feat
,
grad_weight
+
gate_host
[
i
]
*
out_feat
*
in_feat
,
out_feat
));
out_feat
));
}
}
checkCudaErrors
(
cudaDeviceSynchronize
());
for
(
size_t
i
=
0
;
i
<
num_expert
;
++
i
)
{
checkCudaErrors
(
cudaStreamSynchronize
(
*
(
h
->
streams
+
i
)));
}
delete
[]
gate_host
;
delete
[]
gate_host
;
}
}
...
...
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