SWDEV-339113 - update coordinate in HIP sample kernels (#2736)

Change-Id: I8ea179b4ba8f1c0ebec830a5aa5947e843f06e42

[ROCm/hip commit: a94de8f202]
이 커밋은 다음에 포함됨:
ROCm CI Service Account 작성하고 GitHub가 2022-06-15 11:22:27 +05:30를 커밋함
1 부모 df0890d87a
커밋 67969ab1cd
6 파일이 변경됨
+10 -10

검색과 일치하는 파일 없음

+2 -2
파일 보기
@@ -35,8 +35,8 @@ THE SOFTWARE.
// Device (Kernel) function, it must be void
__global__ void matrixTranspose(float* out, float* in, const int width) {
int x = hipBlockDim_x * hipBlockIdx_x + hipThreadIdx_x;
int y = hipBlockDim_y * hipBlockIdx_y + hipThreadIdx_y;
int x = blockDim.x * blockIdx.x + threadIdx.x;
int y = blockDim.y * blockIdx.y + threadIdx.y;
out[y * width + x] = in[x * width + y];
}