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)
constexpr Size SgprSize = 4;
constexpr Size ObjectSize = sizeof(Object);
auto* const from_obj = reinterpret_cast<const byte*>(&obj);
alignas(Object) byte to_obj[ObjectSize];
auto* const from_obj = reinterpret_cast<const std::byte*>(&obj);
alignas(Object) std::byte to_obj[ObjectSize];
constexpr Size RemainedSize = ObjectSize % SgprSize;
constexpr Size CompleteSgprCopyBoundary = ObjectSize - RemainedSize;
......
......@@ -3,7 +3,6 @@
#pragma once
#include "ck/utility/number.hpp"
#include "ck/utility/statically_indexed_array.hpp"
#include "ck/utility/type.hpp"
#ifdef __HIPCC_RTC__
......@@ -18,14 +17,15 @@ using int32_t = signed int;
using uint32_t = unsigned int;
using int64_t = signed long long;
using uint64_t = unsigned long long;
using byte = unsigned char;
using std::byte = unsigned char;
#include <limits> // std::numeric_limits
#else
#include <cstdint> // int8_t, int16_t
#include <cstddef>
#include <cmath> // float_t
#endif
#else
#include <cstddef>
#endif // __HIPCC_RTC__
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