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
fb51f338
"...composable_kernel.git" did not exist on "c54a1014cc73a52be32a18ac13abb3037f9f8bd2"
Commit
fb51f338
authored
May 17, 2023
by
Po-Yen, Chen
Browse files
Add 'const' specifier to never changing variable
parent
a609bfaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/ck/utility/readfirstlane.hpp
include/ck/utility/readfirstlane.hpp
+1
-1
No files found.
include/ck/utility/readfirstlane.hpp
View file @
fb51f338
...
@@ -57,7 +57,7 @@ __device__ auto readfirstlane(const Object& obj)
...
@@ -57,7 +57,7 @@ __device__ auto readfirstlane(const Object& obj)
alignas
(
Object
)
std
::
byte
memory
[
ObjectSize
];
alignas
(
Object
)
std
::
byte
memory
[
ObjectSize
];
const
auto
*
from
=
reinterpret_cast
<
const
std
::
byte
*>
(
&
obj
);
auto
*
const
from
=
reinterpret_cast
<
const
std
::
byte
*>
(
&
obj
);
static_for
<
0
,
ObjectSize
,
SgprSize
>
{}([
&
](
auto
offset
)
{
static_for
<
0
,
ObjectSize
,
SgprSize
>
{}([
&
](
auto
offset
)
{
*
reinterpret_cast
<
Sgpr
*>
(
memory
+
offset
)
=
*
reinterpret_cast
<
Sgpr
*>
(
memory
+
offset
)
=
readfirstlane
(
*
reinterpret_cast
<
const
Sgpr
*>
(
from
+
offset
));
readfirstlane
(
*
reinterpret_cast
<
const
Sgpr
*>
(
from
+
offset
));
...
...
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