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

Reproduce and debug problem in b/385748470. #252

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
10 changes: 10 additions & 0 deletions ml_dtypes/include/float8.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ class float8_e5m2;
class float8_e5m2fnuz;
class float8_e8m0fnu;

#ifdef __GNUC__
static_assert(false, "GCC COMPILER VERSION: " __VERSION__);
#elif _MSC_VER
static_assert(false, "MSVC COMPILER VERSION: " __VERSION__);
#elif __clang__
static_assert(false, "Clang COMPILER VERSION: " __VERSION__);
#else
static_assert(false, "Unknown COMPILER VERSION: " __VERSION__);
#endif

template <typename Derived>
class float8_base {
protected:
Expand Down
Loading