Skip to content

Commit f79d4cc

Browse files
committed
[hipRTC] add lowest() for float to MIOpen custom limits (#2753)
* [hipRTC] add lowest() to MIOpen custom limits * the earliest trace can be found together with numeric_limits<int>
1 parent 6958978 commit f79d4cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/kernels/miopen_limits.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class numeric_limits<float>
4646
static constexpr __device__ float max() noexcept { return 0x1.FFFFFEp+127f; }
4747

4848
static constexpr __device__ float min() noexcept { return 0x1p-126f; }
49+
50+
#if HIP_PACKAGE_VERSION_FLAT >= 6001024024ULL
51+
static constexpr __device__ float lowest() noexcept { return -0x1.fffffep+127; }
52+
#endif
4953
};
5054

5155
template <>

0 commit comments

Comments
 (0)