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

Change-Id: Ibfc0fd285441cd3d79b312d2b739729a039a6f84
이 커밋은 다음에 포함됨:
ROCm CI Service Account 작성하고 GitHub가 2022-06-02 17:07:52 +05:30를 커밋함
1 부모 7b0ed9e8d3
커밋 5da168300f
14 파일이 변경됨
+47 -47

검색과 일치하는 파일 없음

+2 -2
파일 보기
@@ -28,11 +28,11 @@ __device__ float myDeviceGlobal;
__device__ float myDeviceGlobalArray[16];
extern "C" __global__ void hello_world(const float* a, float* b) {
int tx = hipThreadIdx_x;
int tx = threadIdx.x;
b[tx] = a[tx];
}
extern "C" __global__ void test_globals(const float* a, float* b) {
int tx = hipThreadIdx_x;
int tx = threadIdx.x;
b[tx] = a[tx] + myDeviceGlobal + myDeviceGlobalArray[tx % ARRAY_SIZE];
}