From 7720fc5b52da60f06cfad8c7d84a43c88774a8e6 Mon Sep 17 00:00:00 2001 From: Muhammad Tanvir Date: Mon, 6 May 2024 11:44:41 +0100 Subject: [PATCH] Removed static_cast from coordinates --- include/cute/atom/copy_traits_xe.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cute/atom/copy_traits_xe.hpp b/include/cute/atom/copy_traits_xe.hpp index 71766eecd..b60ef8811 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