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
85cc7cd8
Commit
85cc7cd8
authored
Feb 22, 2019
by
Shucai Xiao
Browse files
fix build error
parent
c2aa86c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/targets/gpu/device/gather.cpp
src/targets/gpu/device/gather.cpp
+1
-1
No files found.
src/targets/gpu/device/gather.cpp
View file @
85cc7cd8
...
...
@@ -25,7 +25,7 @@ argument gather(hipStream_t stream,
const
auto
*
inptr
=
device_cast
(
input
.
data
());
if
(
output_shape
.
scalar
())
{
gs_launch
(
stream
,
1
)([
=
](
auto
i
)
{
outptr
[
i
]
=
inptr
[
indices_ptr
[
0
]];
});
gs_launch
(
stream
,
1
)([
=
](
auto
i
)
{
outptr
[
i
]
=
inptr
[
static_cast
<
int
>
(
indices_ptr
[
0
]
)
];
});
}
else
{
...
...
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