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
3dc20da8
Commit
3dc20da8
authored
Jun 01, 2023
by
Po-Yen, Chen
Browse files
Leave the rest byte uninitialized
parent
87eeeac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/ck/utility/amd_wave_read_first_lane.hpp
include/ck/utility/amd_wave_read_first_lane.hpp
+4
-3
No files found.
include/ck/utility/amd_wave_read_first_lane.hpp
View file @
3dc20da8
...
...
@@ -51,16 +51,17 @@ struct get_carrier<3>
__device__
inline
carrier
&
operator
=
(
const
carrier
&
other
)
noexcept
{
std
::
copy_n
(
other
.
bytes
.
data
(),
bytes
.
size
(),
bytes
.
data
());
return
*
this
;
}
__device__
inline
operator
value_type
()
const
noexcept
{
value_type
value
{}
;
std
::
array
<
std
::
byte
,
sizeof
(
value_type
)
>
value
;
std
::
copy_n
(
bytes
.
data
(),
bytes
.
size
(),
reinterpret_cast
<
std
::
byte
*>
(
&
value
));
std
::
copy_n
(
bytes
.
data
(),
bytes
.
size
(),
value
.
data
(
));
return
value
;
return
*
reinterpret_cast
<
const
value_type
*>
(
value
.
data
())
;
}
};
};
...
...
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