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

Change-Id: Ibfc0fd285441cd3d79b312d2b739729a039a6f84
Tá an tiomantas seo le fáil i:
ROCm CI Service Account údaraithe agus GitHub tiomanta 2022-06-02 17:07:52 +05:30
1 tuismitheoir 7b0ed9e8d3
tiomantas 5da168300f
14 comhad athraithe
+47 -47

Níor tháinig aon chomhaid le do chuardach

+2 -2
Féach ar an gComhad
@@ -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];
}