From 483f33772da2434f22109e12a3042485d0581947 Mon Sep 17 00:00:00 2001 From: "M.Emin Ozturk" Date: Wed, 4 Sep 2024 21:52:55 -0700 Subject: [PATCH] Moficiation to fix this issue "threadwise_tensor_slice_transfer_v5r1 issue #1279" (#1492) * issue fix, one line changed for tmp * clang --------- Co-authored-by: Emin Ozturk Co-authored-by: Harisankar Sadasivan <135730918+hsadasiv@users.noreply.github.com> [ROCm/composable_kernel commit: 8378855361e11e35e87c16c70d8c9e6b8bf1e867] --- .../gpu/thread/threadwise_tensor_slice_transfer_v5r1.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck/tensor_operation/gpu/thread/threadwise_tensor_slice_transfer_v5r1.hpp b/include/ck/tensor_operation/gpu/thread/threadwise_tensor_slice_transfer_v5r1.hpp index bd01108b03..40ebdeff08 100644 --- a/include/ck/tensor_operation/gpu/thread/threadwise_tensor_slice_transfer_v5r1.hpp +++ b/include/ck/tensor_operation/gpu/thread/threadwise_tensor_slice_transfer_v5r1.hpp @@ -315,7 +315,7 @@ struct ThreadwiseTensorSliceTransfer_v5r1 forward_sweep_(I0) = true; static_for<1, nDim, 1>{}([&](auto i) { - index_t tmp = ordered_dst_access_idx[I0]; + index_t tmp = 0; static_for<0, i, 1>{}([&](auto j) { tmp = tmp * ordered_dst_access_lengths[j] + ordered_dst_access_idx[j];