SWDEV-339113 - Update sampl codes with correct kernel coordinate (#2704)

Change-Id: Ibfc0fd285441cd3d79b312d2b739729a039a6f84

[ROCm/hip-tests commit: 5da168300f]
This commit is contained in:
ROCm CI Service Account authored and GitHub committed 2022-06-02 17:07:52 +05:30
1 parent f35a48c8fb
commit eddb025028
14 files changed
+47 -47

No files matched your search

@@ -35,8 +35,8 @@ THE SOFTWARE.
}
__global__ void bit_extract_kernel(uint32_t* C_d, const uint32_t* A_d, size_t N) {
size_t offset = (hipBlockIdx_x * hipBlockDim_x + hipThreadIdx_x);
size_t stride = hipBlockDim_x * hipGridDim_x;
size_t offset = (blockIdx.x * blockDim.x + threadIdx.x);
size_t stride = blockDim.x * gridDim.x;
for (size_t i = offset; i < N; i += stride) {
#ifdef __HIP_PLATFORM_AMD__