Commit fac71734 authored by Umang Yadav's avatar Umang Yadav
Browse files

fix std::byte

parent 6c7ba556
...@@ -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;
......
...@@ -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 {
......
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