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
fac71734
Commit
fac71734
authored
Jun 13, 2023
by
Umang Yadav
Browse files
fix std::byte
parent
6c7ba556
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/ck/utility/amd_wave_read_first_lane.hpp
include/ck/utility/amd_wave_read_first_lane.hpp
+2
-2
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+3
-3
No files found.
include/ck/utility/amd_wave_read_first_lane.hpp
View file @
fac71734
...
@@ -52,8 +52,8 @@ __device__ auto amd_wave_read_first_lane(const Object& obj)
...
@@ -52,8 +52,8 @@ __device__ auto amd_wave_read_first_lane(const Object& obj)
constexpr
Size
SgprSize
=
4
;
constexpr
Size
SgprSize
=
4
;
constexpr
Size
ObjectSize
=
sizeof
(
Object
);
constexpr
Size
ObjectSize
=
sizeof
(
Object
);
auto
*
const
from_obj
=
reinterpret_cast
<
const
byte
*>
(
&
obj
);
auto
*
const
from_obj
=
reinterpret_cast
<
const
std
::
byte
*>
(
&
obj
);
alignas
(
Object
)
byte
to_obj
[
ObjectSize
];
alignas
(
Object
)
std
::
byte
to_obj
[
ObjectSize
];
constexpr
Size
RemainedSize
=
ObjectSize
%
SgprSize
;
constexpr
Size
RemainedSize
=
ObjectSize
%
SgprSize
;
constexpr
Size
CompleteSgprCopyBoundary
=
ObjectSize
-
RemainedSize
;
constexpr
Size
CompleteSgprCopyBoundary
=
ObjectSize
-
RemainedSize
;
...
...
include/ck/utility/data_type.hpp
View file @
fac71734
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
#pragma once
#pragma once
#include "ck/utility/number.hpp"
#include "ck/utility/statically_indexed_array.hpp"
#include "ck/utility/statically_indexed_array.hpp"
#include "ck/utility/type.hpp"
#include "ck/utility/type.hpp"
#ifdef __HIPCC_RTC__
#ifdef __HIPCC_RTC__
...
@@ -18,14 +17,15 @@ using int32_t = signed int;
...
@@ -18,14 +17,15 @@ using int32_t = signed int;
using
uint32_t
=
unsigned
int
;
using
uint32_t
=
unsigned
int
;
using
int64_t
=
signed
long
long
;
using
int64_t
=
signed
long
long
;
using
uint64_t
=
unsigned
long
long
;
using
uint64_t
=
unsigned
long
long
;
using
byte
=
unsigned
char
;
using
std
::
byte
=
unsigned
char
;
#include <limits> // std::numeric_limits
#include <limits> // std::numeric_limits
#else
#else
#include <cstdint> // int8_t, int16_t
#include <cstdint> // int8_t, int16_t
#include <cstddef>
#include <cmath> // float_t
#include <cmath> // float_t
#endif
#endif
#else
#include <cstddef>
#endif // __HIPCC_RTC__
#endif // __HIPCC_RTC__
namespace
ck
{
namespace
ck
{
...
...
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