Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing std::numeric_limits<half_t>::digits to include the implicit one #1702

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/cutlass/half.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ struct numeric_limits<cutlass::half_t> {
static bool const is_iec559 = true;
static bool const is_bounded = true;
static bool const is_modulo = false;
static int const digits = 10;
static int const digits = 11;

/// Least positive value
static cutlass::half_t min() { return cutlass::half_t::bitcast(0x0001); }
Expand Down Expand Up @@ -658,7 +658,7 @@ struct numeric_limits<cutlass::half_t> {
static bool const is_iec559 = true;
static bool const is_bounded = true;
static bool const is_modulo = false;
static int const digits = 10;
static int const digits = 11;

/// Least positive value
CUTLASS_HOST_DEVICE
Expand Down