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_ROCM
Commits
3624dc2a
Commit
3624dc2a
authored
Sep 27, 2024
by
Astha Rai
Browse files
fixing errors in data type file
parent
eed724f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+16
-1
No files found.
include/ck/utility/data_type.hpp
View file @
3624dc2a
...
...
@@ -13,7 +13,7 @@ using float_t = float;
#endif
namespace
ck
{
#ifdef
__HIPCC
_RTC_
_
#ifdef
CK_CODE_GEN
_RTC_
using
byte
=
unsigned
char
;
#else
using
std
::
byte
;
...
...
@@ -1075,6 +1075,21 @@ using uint8x64_t = typename vector_type<uint8_t, 64>::type;
template
<
typename
T
>
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
<
>
struct
NumericLimits
<
int32_t
>
{
...
...
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