"git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "ae7945cafacf90d6cef3e9fd97029fa0e5a18d63"
Commit f11f4b08 authored by Astha Rai's avatar Astha Rai
Browse files

fixed header guard issues

parent 982c17e6
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include "ck/stream_config.hpp" #include "ck/stream_config.hpp"
#endif #endif
#endif
namespace ck { namespace ck {
namespace tensor_operation { namespace tensor_operation {
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <limits> #include <limits>
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#endif
namespace ck { namespace ck {
......
...@@ -2624,6 +2624,7 @@ using pk_i4x2_t = typename vector_type<pk_i4_t, 2>::type; ...@@ -2624,6 +2624,7 @@ using pk_i4x2_t = typename vector_type<pk_i4_t, 2>::type;
using pk_i4x4_t = typename vector_type<pk_i4_t, 4>::type; using pk_i4x4_t = typename vector_type<pk_i4_t, 4>::type;
using pk_i4x8_t = typename vector_type<pk_i4_t, 8>::type; using pk_i4x8_t = typename vector_type<pk_i4_t, 8>::type;
#ifdef __HIPCC_RTC__
#ifdef CK_CODE_GEN_RTC #ifdef CK_CODE_GEN_RTC
template <typename T> template <typename T>
struct NumericLimits; struct NumericLimits;
...@@ -2971,7 +2972,6 @@ struct NumericLimits<bf8_ocp_t> ...@@ -2971,7 +2972,6 @@ struct NumericLimits<bf8_ocp_t>
return bit_cast<bf8_ocp_t>(binary_qnan); return bit_cast<bf8_ocp_t>(binary_qnan);
} }
}; };
#endif
template <> template <>
struct NumericLimits<f4_t> struct NumericLimits<f4_t>
...@@ -3085,6 +3085,7 @@ struct NumericLimits<e8m0_bexp_t> ...@@ -3085,6 +3085,7 @@ struct NumericLimits<e8m0_bexp_t>
} }
}; };
#endif #endif
#endif
template <typename T> template <typename T>
struct NumericUtils struct NumericUtils
......
...@@ -465,6 +465,7 @@ inline __host__ double expm1<double>(double x) ...@@ -465,6 +465,7 @@ inline __host__ double expm1<double>(double x)
return std::expm1(x); return std::expm1(x);
} }
#endif #endif
#endif
// math functions for the HIP kernel, some are implemented by calling hip builtin functions // math functions for the HIP kernel, some are implemented by calling hip builtin functions
static inline __device__ float abs(float x) { return ::abs(x); }; static inline __device__ float abs(float x) { return ::abs(x); };
......
...@@ -173,6 +173,7 @@ using is_tuple = decltype(ck::declval<T&>().IsTuple()); ...@@ -173,6 +173,7 @@ using is_tuple = decltype(ck::declval<T&>().IsTuple());
template <typename... Ts> template <typename... Ts>
__host__ __device__ constexpr auto IsNestedTuple(const Tuple<Ts...>&) __host__ __device__ constexpr auto IsNestedTuple(const Tuple<Ts...>&)
{ {
#ifndef __HIPCC_RTC__
#ifndef CK_CODE_GEN_RTC #ifndef CK_CODE_GEN_RTC
return (is_detected<is_tuple, Ts>::value || ...); return (is_detected<is_tuple, Ts>::value || ...);
#endif #endif
......
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