Re-sync with upstream.

[ROCm/clr commit: 30d90dab38]
This commit is contained in:
Alex Voicu
2017-11-20 15:34:50 +00:00
melakukan 9cf73ef515
65 mengubah file dengan 320 tambahan dan 265 penghapusan
@@ -57,8 +57,8 @@ vectoradd_float(hipLaunchParm lp,
T* a, const T* bm, int width, int height)
{
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;
int i = y * width + x;
if ( i < (width * height)) {