SWDEV-339113 - update coordinate in HIP sample kernels (#2736)
Change-Id: I8ea179b4ba8f1c0ebec830a5aa5947e843f06e42
This commit is contained in:
committad av
GitHub
förälder
7d7953c8e0
incheckning
dea8404361
@@ -38,8 +38,8 @@ THE SOFTWARE.
|
||||
__global__ void matrixTranspose(float* out, float* in, const int width) {
|
||||
__shared__ float sharedMem[WIDTH * 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;
|
||||
|
||||
sharedMem[y * width + x] = in[x * width + y];
|
||||
|
||||
|
||||
Referens i nytt ärende
Block a user