mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
* delete obselete files * move files * build * update cmake * update cmake * fix build * reorg examples * update cmake for example and test
17 lines
363 B
C++
17 lines
363 B
C++
#ifndef CK_MATH_V2_HPP
|
|
#define CK_MATH_V2_HPP
|
|
|
|
#include "data_type.hpp"
|
|
|
|
namespace ck {
|
|
namespace math {
|
|
|
|
static inline __device__ half_t abs(half_t x) { return __habs(x); };
|
|
static inline __device__ half_t sqrtf(half_t x) { return hsqrt(x); };
|
|
static inline __device__ bool isnan(half_t x) { return __hisnan(x); };
|
|
|
|
} // namespace math
|
|
} // namespace ck
|
|
|
|
#endif
|