Skip to content

Commit

Permalink
[hipRTC] add lowest() for float to MIOpen custom limits (#2753)
Browse files Browse the repository at this point in the history
* [hipRTC] add lowest() to MIOpen custom limits

* the earliest trace can be found together with numeric_limits<int>
  • Loading branch information
junliume committed Feb 16, 2024
1 parent 6958978 commit f79d4cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kernels/miopen_limits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class numeric_limits<float>
static constexpr __device__ float max() noexcept { return 0x1.FFFFFEp+127f; }

static constexpr __device__ float min() noexcept { return 0x1p-126f; }

#if HIP_PACKAGE_VERSION_FLAT >= 6001024024ULL
static constexpr __device__ float lowest() noexcept { return -0x1.fffffep+127; }
#endif
};

template <>
Expand Down

0 comments on commit f79d4cc

Please sign in to comment.