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
c1051d51
Commit
c1051d51
authored
May 12, 2023
by
Ted Themistokleous
Browse files
Fix error in nonzero
parent
7433c2d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/targets/gpu/device/nonzero.cpp
src/targets/gpu/device/nonzero.cpp
+1
-1
No files found.
src/targets/gpu/device/nonzero.cpp
View file @
c1051d51
...
...
@@ -46,7 +46,7 @@ argument nonzero(hipStream_t stream, const argument& result, const argument& arg
auto
*
ptr
=
result
.
cast
<
int64_t
>
();
gs_launch
(
stream
,
block_size
,
block_size
)([
=
](
auto
,
auto
idx
)
__device__
{
// fill all output to 0 first
idx
.
local_stride
(
out_elem_num
,
[
&
](
auto
j
)
{
ptr
[
j
]
=
0
;
});
idx
.
local_stride
(
out_elem_num
-
1
,
[
&
](
auto
j
)
{
ptr
[
j
]
=
0
;
});
block_scan
<
block_size
>
(
idx
,
...
...
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