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
MIGraphX
Commits
30b15ebc
Commit
30b15ebc
authored
Jun 28, 2019
by
Shucai Xiao
Browse files
revert some chagnes.
parent
ec5a90ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/device/include/migraphx/gpu/device/reduce.hpp
...targets/gpu/device/include/migraphx/gpu/device/reduce.hpp
+2
-2
No files found.
src/targets/gpu/device/include/migraphx/gpu/device/reduce.hpp
View file @
30b15ebc
...
@@ -78,9 +78,9 @@ __device__ auto block_reduce(index idx, Op op, T init, std::size_t n, F f)
...
@@ -78,9 +78,9 @@ __device__ auto block_reduce(index idx, Op op, T init, std::size_t n, F f)
for
(
std
::
size_t
s
=
1
;
s
<
idx
.
nlocal
();
s
*=
2
)
for
(
std
::
size_t
s
=
1
;
s
<
idx
.
nlocal
();
s
*=
2
)
{
{
const
std
::
size_t
index
=
2
*
s
*
idx
.
local
;
const
std
::
size_t
index
=
2
*
s
*
idx
.
local
;
if
(
index
<
idx
.
nlocal
())
if
(
index
+
s
<
idx
.
nlocal
())
{
{
buffer
[
index
+
s
]
=
op
(
buffer
[
index
],
buffer
[
index
+
s
]);
buffer
[
index
]
=
op
(
buffer
[
index
],
buffer
[
index
+
s
]);
}
}
__syncthreads
();
__syncthreads
();
}
}
...
...
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