Skip to content

Commit 84d4ca0

Browse files
committed
cuda : minor indentation
1 parent 8d8d54f commit 84d4ca0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ggml-cuda.cu

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,13 +4326,13 @@ static __global__ void mul_mat_vec_nc_f16_f32( // nc == non-contiguous
43264326

43274327
const half * x = (const half *) vx;
43284328

4329-
const int row_x = blockDim.y*blockIdx.y + threadIdx.y;
4330-
const int channel = blockDim.z*blockIdx.z + threadIdx.z;
4329+
const int row_x = blockDim.y*blockIdx.y + threadIdx.y;
4330+
const int channel = blockDim.z*blockIdx.z + threadIdx.z;
43314331
const int channel_x = channel / channel_x_divisor;
43324332

4333-
const int nrows_y = ncols_x;
4333+
const int nrows_y = ncols_x;
43344334
const int nrows_dst = nrows_x;
4335-
const int row_dst = row_x;
4335+
const int row_dst = row_x;
43364336

43374337
const int idst = channel*nrows_dst + row_dst;
43384338

@@ -4345,13 +4345,13 @@ static __global__ void mul_mat_vec_nc_f16_f32( // nc == non-contiguous
43454345
break;
43464346
}
43474347

4348-
const int ix = channel_x*channel_stride_x + row_x*row_stride_x + col_x;
4349-
const float xi = __half2float(x[ix]);
4350-
43514348
const int row_y = col_x;
43524349

4350+
const int ix = channel_x*channel_stride_x + row_x*row_stride_x + col_x;
43534351
const int iy = channel*nrows_y + row_y;
43544352

4353+
const float xi = __half2float(x[ix]);
4354+
43554355
tmp += xi * y[iy];
43564356
}
43574357

0 commit comments

Comments
 (0)