"...composable_kernel_rocm.git" did not exist on "712e464c4e437a5aaa2fe47bb8161b8f1946e501"
Commit a609bfaa authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Replace unsigne char by std::byte

parent a8d4294c
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include "ck/utility/functional2.hpp" #include "ck/utility/functional2.hpp"
#include "ck/utility/math.hpp" #include "ck/utility/math.hpp"
#include <cstddef>
#include <cstdint> #include <cstdint>
#include <type_traits> #include <type_traits>
...@@ -54,9 +55,9 @@ __device__ auto readfirstlane(const Object& obj) ...@@ -54,9 +55,9 @@ __device__ auto readfirstlane(const Object& obj)
using Sgpr = detail::get_signed_int_t<SgprSize>; using Sgpr = detail::get_signed_int_t<SgprSize>;
alignas(Object) unsigned char memory[ObjectSize]; alignas(Object) std::byte memory[ObjectSize];
const auto* from = reinterpret_cast<const unsigned char*>(&obj); const auto* 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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment