You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is considered an undefined behavior, and is not guaranteed by NumPy with transition from one CPU architecture to another. Perhaps dpctl could, internally, cast floating point number to the largest integral type first, and then cast the result to a smaller integral type, but compiler considers any casting from floating point type to integral type an undefined behavior (see https://en.cppreference.com/w/cpp/language/implicit_conversion, section Floating-Integral conversion):
If the truncated value cannot fit into the destination type, the behavior is undefined (even when the destination type is unsigned, modulo arithmetic does not apply).
The following cases behave differently in
dpctl
andNumPy
.The text was updated successfully, but these errors were encountered: