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
b4c4234d
Commit
b4c4234d
authored
May 12, 2022
by
Paul
Browse files
Fix vec_reduce
parent
172f47f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp
src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp
+2
-2
No files found.
src/targets/gpu/kernels/include/migraphx/kernels/vec.hpp
View file @
b4c4234d
...
...
@@ -153,9 +153,9 @@ constexpr auto vec_reduce(T x, Op op)
return
x
;
else
{
vec_type
<
T
>
result
=
0
;
vec_type
<
T
>
result
=
x
[
0
]
;
for
(
int
i
=
1
;
i
<
vec_size
<
T
>
();
i
++
)
result
=
op
(
x
[
i
-
1
]
,
x
[
i
]);
result
=
op
(
result
,
x
[
i
]);
return
result
;
}
}
...
...
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