Skip to content

Commit 6143e55

Browse files
authored
[SYCL][ESIMD] Fix an issue causing incorrect half conversion under ESIMD emulator (#6592)
Fix an issue causing incorrect half conversion under ESIMD emulator
1 parent 723a873 commit 6143e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/ext/intel/esimd/detail/elem_type_traits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ class WrapperElementTypeProxy {
582582
template <class T = sycl::half>
583583
static inline T bitcast_to_half(__raw_t<T> Bits) {
584584
#ifndef __SYCL_DEVICE_ONLY__
585-
return sycl::half{Bits};
585+
return sycl::half(::sycl::detail::host_half_impl::half_v2(Bits));
586586
#else
587587
sycl::half Res;
588588
Res.Data = Bits;

0 commit comments

Comments
 (0)