diff --git a/include/cute/atom/copy_traits_xe.hpp b/include/cute/atom/copy_traits_xe.hpp index 71766eecd4..b60ef8811c 100644 --- a/include/cute/atom/copy_traits_xe.hpp +++ b/include/cute/atom/copy_traits_xe.hpp @@ -54,7 +54,7 @@ struct XE_2D_LD_Unpack int H = size<0>(traits.tensor); int W = size<1>(traits.tensor) * sizeof(typename Copy_Traits::CopyInternalType); auto [y, x, z] = src.data().coord_; - CopyOp::copy(traits.tensor.data() + z, W, H, W, intel::coord_t{static_cast(x), static_cast(y)}, &*dst.data()); + CopyOp::copy(traits.tensor.data() + z, W, H, W, intel::coord_t{x, y}, &*dst.data()); } template @@ -284,7 +284,7 @@ struct XE_2D_ST_Unpack int H = size<0>(traits.tensor); int W = size<1>(traits.tensor) * sizeof(typename Copy_Traits::CopyInternalType); auto [y, x, z] = dst.data().coord_; - CopyOp::copy(traits.tensor.data() + z, W, H, W, intel::coord_t{static_cast(x), static_cast(y)}, &*src.data()); + CopyOp::copy(traits.tensor.data() + z, W, H, W, intel::coord_t{x, y}, &*src.data()); } template