Commit 3624dc2a authored by Astha Rai's avatar Astha Rai
Browse files

fixing errors in data type file

parent eed724f3
...@@ -13,7 +13,7 @@ using float_t = float; ...@@ -13,7 +13,7 @@ using float_t = float;
#endif #endif
namespace ck { namespace ck {
#ifdef __HIPCC_RTC__ #ifdef CK_CODE_GEN_RTC_
using byte = unsigned char; using byte = unsigned char;
#else #else
using std::byte; using std::byte;
...@@ -1075,6 +1075,21 @@ using uint8x64_t = typename vector_type<uint8_t, 64>::type; ...@@ -1075,6 +1075,21 @@ using uint8x64_t = typename vector_type<uint8_t, 64>::type;
template <typename T> template <typename T>
struct NumericLimits; struct NumericLimits;
template <typename T>
struct NumericLimits
{
#ifndef CK_CODE_GEN_RTC
__host__ __device__ static constexpr T Min() { return std::numeric_limits<T>::min(); }
__host__ __device__ static constexpr T Max() { return std::numeric_limits<T>::max(); }
__host__ __device__ static constexpr T Lowest() { return std::numeric_limits<T>::lowest(); }
__host__ __device__ static constexpr T QuietNaN()
{
return std::numeric_limits<T>::quiet_NaN();
}
__host__ __device__ static constexpr T Infinity() { return std::numeric_limits<T>::infinity(); }
#endif
};
template <> template <>
struct NumericLimits<int32_t> struct NumericLimits<int32_t>
{ {
......
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