@@ -152,7 +152,7 @@ struct element_type_traits<T, std::enable_if_t<is_vectorizable_v<T>>> {
152
152
// These are default implementations for wrapper types with native cpp
153
153
// operations support for their corresponding raw type.
154
154
template <class WrapperTy , class StdTy , int N>
155
- vector_type_t <__raw_t <WrapperTy>, N>
155
+ ESIMD_INLINE vector_type_t <__raw_t <WrapperTy>, N>
156
156
__esimd_convertvector_to (vector_type_t <StdTy, N> Val)
157
157
#ifdef __SYCL_DEVICE_ONLY__
158
158
; // needs to be implemented for WrapperTy's for which
@@ -165,7 +165,7 @@ __esimd_convertvector_to(vector_type_t<StdTy, N> Val)
165
165
#endif // __SYCL_DEVICE_ONLY__
166
166
167
167
template <class WrapperTy , class StdTy , int N>
168
- vector_type_t <StdTy, N>
168
+ ESIMD_INLINE vector_type_t <StdTy, N>
169
169
__esimd_convertvector_from (vector_type_t <__raw_t <WrapperTy>, N> Val)
170
170
#ifdef __SYCL_DEVICE_ONLY__
171
171
; // needs to be implemented for WrapperTy's for which
@@ -668,12 +668,12 @@ struct element_type_traits<T, std::enable_if_t<std::is_same_v<T, sycl::half>>> {
668
668
669
669
using half_raw = __raw_t <sycl::half>;
670
670
671
- template <>
671
+ template <> ESIMD_INLINE
672
672
sycl::half __esimd_wrapper_type_bitcast_to<sycl::half>(half_raw Val) {
673
673
return WrapperElementTypeProxy::bitcast_to_half (Val);
674
674
}
675
675
676
- template <>
676
+ template <> ESIMD_INLINE
677
677
half_raw __esimd_wrapper_type_bitcast_from<sycl::half>(sycl::half Val) {
678
678
return WrapperElementTypeProxy::bitcast_from_half (Val);
679
679
}
0 commit comments