Skip to content

Commit 96685ab

Browse files
[skip ci] Auto-format code with clang-format and black
1 parent e4d427d commit 96685ab

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

csrc/include/pmpp/utils/address.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace pmpp
1414
{
1515
/**
1616
* @brief Compute the offset of a multi-dimensional array.
17-
* A typical use case is that if you have rowIdx, colIdx, nRows and nCols,
17+
* A typical use case is that if you have rowIdx, colIdx, nRows and nCols,
1818
* to calculate the linear index of the element at (rowIdx, colIdx), you can
1919
* use this function as follows:
2020
* > offset(rowIdx, colIdx, nRows, nCols)
@@ -23,7 +23,7 @@ namespace pmpp
2323
* dimension.
2424
* @return std::uint32_t The offset of the multi-dimensional array.
2525
*
26-
* @example
26+
* @example
2727
* 1. To calculate the offset of idx (2, 1) in a 2D array of dim (4, 3):
2828
* > offset(2, 1, 4, 3) -> 1*1 + 2*3 = 7
2929
* 2. To calculate the offset of idx (1, 2, 3) in a 3D array of dim

csrc/lib/ops/stencil/op.cu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ void launchStencil3d(const fp32_t* input, fp32_t* output, dim3 shape,
6969
dim3 gridDim = {ceilDiv(shape.x, BLOCK_DIM.x),
7070
ceilDiv(shape.y, BLOCK_DIM.y),
7171
ceilDiv(shape.z, BLOCK_DIM.z)};
72-
73-
7472

7573
stencilKernel<fp32_t, BLOCK_DIM>
7674
<<<gridDim, BLOCK_DIM>>>(input, output, shape, coeffs);

0 commit comments

Comments
 (0)