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
gaoqiong
composable_kernel
Commits
e6dce0db
Commit
e6dce0db
authored
Nov 09, 2022
by
Qianfeng Zhang
Browse files
Add block_sync_lds() between blockwise reduction again
parent
3ac68bcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
include/ck/tensor_operation/gpu/grid/gridwise_batchnorm_backward_blockwise_welford.hpp
...pu/grid/gridwise_batchnorm_backward_blockwise_welford.hpp
+2
-0
No files found.
include/ck/tensor_operation/gpu/grid/gridwise_batchnorm_backward_blockwise_welford.hpp
View file @
e6dce0db
...
@@ -478,6 +478,8 @@ struct GridwiseBatchNormBackwardWithBlockwiseWelford
...
@@ -478,6 +478,8 @@ struct GridwiseBatchNormBackwardWithBlockwiseWelford
};
};
static_for
<
0
,
MThreadSliceSize
,
1
>
{}([
&
](
auto
I
)
{
static_for
<
0
,
MThreadSliceSize
,
1
>
{}([
&
](
auto
I
)
{
if
constexpr
(
I
>
0
)
block_sync_lds
();
BlockwiseReduce
::
Reduce
(
reduce_work_buf
,
dscale_thread_buf
(
I
));
BlockwiseReduce
::
Reduce
(
reduce_work_buf
,
dscale_thread_buf
(
I
));
block_sync_lds
();
block_sync_lds
();
BlockwiseReduce
::
Reduce
(
reduce_work_buf
,
dbias_thread_buf
(
I
));
BlockwiseReduce
::
Reduce
(
reduce_work_buf
,
dbias_thread_buf
(
I
));
...
...
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