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
1bde1726
Commit
1bde1726
authored
Jan 03, 2021
by
Jiezhong Qiu
Browse files
cudafree malloced memory
parent
97a2b1be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pytorch/cuda/moe_cuda_kernel.cu
pytorch/cuda/moe_cuda_kernel.cu
+4
-1
No files found.
pytorch/cuda/moe_cuda_kernel.cu
View file @
1bde1726
...
@@ -86,6 +86,9 @@ void moe_cuda_forward_impl(
...
@@ -86,6 +86,9 @@ void moe_cuda_forward_impl(
batch_size
));
batch_size
));
checkCudaErrors
(
cudaStreamSynchronize
(
*
(
h
->
streams
)));
checkCudaErrors
(
cudaStreamSynchronize
(
*
(
h
->
streams
)));
checkCudaErrors
(
cudaFree
(
Aarray
));
checkCudaErrors
(
cudaFree
(
Barray
));
checkCudaErrors
(
cudaFree
(
Carray
));
}
}
template
<
typename
scalar_t
>
template
<
typename
scalar_t
>
...
...
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