Skip to content

Commit 803f7a2

Browse files
joeatoddt4c1
andauthored
Replace removed bfloat16ToBits with bit_cast (#241)
`bfloat16toBits` was removed in [DPC++](intel/llvm#17256) to be replaced with `bit_cast`. Should fix CI failures described [here](#239 (comment)). --------- Co-authored-by: Tadej Ciglarič <[email protected]>
1 parent 1ec7c6b commit 803f7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cutlass/bfloat16.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct alignas(2) bfloat16_t {
126126

127127
#elif defined(CUTLASS_ENABLE_SYCL)
128128

129-
storage = sycl::ext::oneapi::detail::bfloat16ToBits(sycl::ext::oneapi::bfloat16(x));
129+
storage = cutlass::platform::bit_cast<decltype(storage)>(sycl::ext::oneapi::bfloat16(x));
130130

131131
#else
132132
uint32_t bits;

0 commit comments

Comments
 (0)