File tree Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,8 @@ using scalar_vector_double_list =
97
97
using double_list =
98
98
tl_append<scalar_double_list, vector_double_list, marray_double_list>;
99
99
100
- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
101
100
using scalar_floating_list = tl_append<scalar_float_list, scalar_double_list,
102
101
scalar_half_list, scalar_bfloat16_list>;
103
- #else
104
- // Presently, this is used only by builtins_legacy_scalar.hpp for defining math
105
- // funcs. bfloat16 provides its own scalar math definitions so we skip its
106
- // inclusion.
107
- using scalar_floating_list =
108
- tl_append<scalar_float_list, scalar_double_list, scalar_half_list>;
109
- #endif
110
102
111
103
using vector_floating_list = tl_append<vector_float_list, vector_double_list,
112
104
vector_half_list, vector_bfloat16_list>;
Original file line number Diff line number Diff line change @@ -21,13 +21,6 @@ __devicelib_ConvertBF16ToFINTEL(const uint16_t &) noexcept;
21
21
22
22
namespace sycl {
23
23
inline namespace _V1 {
24
-
25
- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
26
- // forward declaration of sycl::isnan built-in.
27
- // extern __DPCPP_SYCL_EXTERNAL bool isnan(float a);
28
- bool isnan (float a);
29
- #endif
30
-
31
24
namespace ext ::oneapi {
32
25
33
26
class bfloat16 ;
@@ -53,10 +46,6 @@ using Vec8StorageT = std::array<Bfloat16StorageT, 8>;
53
46
using Vec16StorageT = std::array<Bfloat16StorageT, 16 >;
54
47
#endif
55
48
} // namespace bf16
56
-
57
- #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
58
- inline bool float_is_nan (float x) { return x != x; }
59
- #endif
60
49
} // namespace detail
61
50
62
51
class bfloat16 {
@@ -77,13 +66,10 @@ class bfloat16 {
77
66
78
67
private:
79
68
static detail::Bfloat16StorageT from_float_fallback (const float &a) {
80
- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
81
- if (sycl::isnan (a))
82
- return 0xffc1 ;
83
- #else
84
- if (detail::float_is_nan (a))
69
+ // We don't call sycl::isnan because we don't want a data type to depend on
70
+ // builtins.
71
+ if (a != a)
85
72
return 0xffc1 ;
86
- #endif
87
73
88
74
union {
89
75
uint32_t intStorage;
You can’t perform that action at this time.
0 commit comments