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
eed724f3
Commit
eed724f3
authored
Sep 26, 2024
by
Astha Rai
Browse files
fixing some conflicts in utility files, another round of header guards
parent
afff4356
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
+6
-17
include/ck/utility/data_type.hpp
include/ck/utility/data_type.hpp
+0
-17
include/ck/utility/tuple_helper.hpp
include/ck/utility/tuple_helper.hpp
+6
-0
No files found.
include/ck/utility/data_type.hpp
View file @
eed724f3
...
@@ -1075,23 +1075,6 @@ using uint8x64_t = typename vector_type<uint8_t, 64>::type;
...
@@ -1075,23 +1075,6 @@ 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
{
__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
();
}
};
template
<
>
template
<
>
struct
NumericLimits
<
int32_t
>
struct
NumericLimits
<
int32_t
>
{
{
...
...
include/ck/utility/tuple_helper.hpp
View file @
eed724f3
...
@@ -5,7 +5,9 @@
...
@@ -5,7 +5,9 @@
#include "functional4.hpp"
#include "functional4.hpp"
#include "tuple.hpp"
#include "tuple.hpp"
#ifndef CK_CODE_GEN_RTC
#include "is_detected.hpp"
#include "is_detected.hpp"
#endif
namespace
ck
{
namespace
ck
{
...
@@ -157,13 +159,17 @@ __host__ __device__ constexpr auto TupleReduce(F&& f, const Tuple<Ts...>& tuple)
...
@@ -157,13 +159,17 @@ __host__ __device__ constexpr auto TupleReduce(F&& f, const Tuple<Ts...>& tuple)
}
}
}
}
#ifndef CK_CODE_GEN_RTC
template
<
typename
T
>
template
<
typename
T
>
using
is_tuple
=
decltype
(
std
::
declval
<
T
&>
().
IsTuple
());
using
is_tuple
=
decltype
(
std
::
declval
<
T
&>
().
IsTuple
());
#endif
template
<
typename
...
Ts
>
template
<
typename
...
Ts
>
__host__
__device__
constexpr
auto
IsNestedTuple
(
const
Tuple
<
Ts
...
>&
)
__host__
__device__
constexpr
auto
IsNestedTuple
(
const
Tuple
<
Ts
...
>&
)
{
{
#ifndef CK_CODE_GEN_RTC
return
(
is_detected
<
is_tuple
,
Ts
>::
value
||
...);
return
(
is_detected
<
is_tuple
,
Ts
>::
value
||
...);
#endif
}
}
template
<
index_t
depth
=
0
,
typename
T
>
template
<
index_t
depth
=
0
,
typename
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