SWDEV-339113 - update coordinate in HIP sample kernels (#2736)
Change-Id: I8ea179b4ba8f1c0ebec830a5aa5947e843f06e42
This commit is contained in:
committed by
GitHub
parent
14a136c3e2
commit
a94de8f202
@@ -31,7 +31,7 @@ We will be using the Simple Matrix Transpose application from the previous tutor
|
||||
|
||||
In the same sourcecode, we used for MatrixTranspose. We'll add the following:
|
||||
```
|
||||
int y = hipBlockDim_y * hipBlockIdx_y + hipThreadIdx_y;
|
||||
int y = blockDim.y * blockIdx.y + threadIdx.y;
|
||||
out[x*width + y] = __shfl(val,y*width + x);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user