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
ad8bc60b
Commit
ad8bc60b
authored
May 29, 2023
by
Po-Yen, Chen
Browse files
Replace static_for<> by ordinary 'for' loop
parent
0840e016
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/ck/utility/readfirstlane.hpp
include/ck/utility/readfirstlane.hpp
+3
-2
No files found.
include/ck/utility/readfirstlane.hpp
View file @
ad8bc60b
...
@@ -62,10 +62,11 @@ __device__ auto readfirstlane(const Object& obj)
...
@@ -62,10 +62,11 @@ __device__ auto readfirstlane(const Object& obj)
constexpr
Size
RemainedSize
=
ObjectSize
%
SgprSize
;
constexpr
Size
RemainedSize
=
ObjectSize
%
SgprSize
;
constexpr
Size
CompleteSgprCopyBoundary
=
ObjectSize
-
RemainedSize
;
constexpr
Size
CompleteSgprCopyBoundary
=
ObjectSize
-
RemainedSize
;
static_for
<
0
,
CompleteSgprCopyBoundary
,
SgprSize
>
{}([
&
](
auto
offset
)
{
for
(
Size
offset
=
0
;
offset
<
CompleteSgprCopyBoundary
;
offset
+=
SgprSize
)
{
*
reinterpret_cast
<
Sgpr
*>
(
to_obj
+
offset
)
=
*
reinterpret_cast
<
Sgpr
*>
(
to_obj
+
offset
)
=
readfirstlane
(
*
reinterpret_cast
<
const
Sgpr
*>
(
from_obj
+
offset
));
readfirstlane
(
*
reinterpret_cast
<
const
Sgpr
*>
(
from_obj
+
offset
));
}
);
}
if
constexpr
(
0
<
RemainedSize
)
if
constexpr
(
0
<
RemainedSize
)
{
{
...
...
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