File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
dpctl/tensor/libtensor/include/kernels Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ class GenericCopyFunctor
101
101
const ssize_t &src_offset = offsets.get_first_offset ();
102
102
const ssize_t &dst_offset = offsets.get_second_offset ();
103
103
104
- CastFnT fn{};
104
+ static constexpr CastFnT fn{};
105
105
dst_[dst_offset] = fn (src_[src_offset]);
106
106
}
107
107
};
@@ -237,9 +237,9 @@ class ContigCopyFunctor
237
237
238
238
static constexpr std::uint8_t elems_per_wi = n_vecs * vec_sz;
239
239
240
- using dpctl::tensor::type_utils::is_complex ;
241
- if constexpr (!enable_sg_loadstore || is_complex <srcT>::value ||
242
- is_complex <dstT>::value )
240
+ using dpctl::tensor::type_utils::is_complex_v ;
241
+ if constexpr (!enable_sg_loadstore || is_complex_v <srcT> ||
242
+ is_complex_v <dstT>)
243
243
{
244
244
std::uint16_t sgSize = ndit.get_sub_group ().get_local_range ()[0 ];
245
245
const std::size_t gid = ndit.get_global_linear_id ();
You can’t perform that action at this time.
0 commit comments