Skip to content

Commit e280cb8

Browse files
committed
add comment for rel_i0
# Conflicts: # ggml/src/ggml-cuda/pad_reflect_1d.cu
2 parents d73ba84 + a5ef1d0 commit e280cb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-cuda/pad_reflect_1d.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static __global__ __launch_bounds__(CUDA_PAD_REFLECT_1D_BLOCK_SIZE, 1) void
3636
const char * src0_ptr = (const char *) src0 + i3 * nb03 + i2 * nb02 + i1 * nb01;
3737
char * dst_ptr = (char *) dst + i3 * nb3 + i2 * nb2 + i1 * nb1;
3838

39-
const int64_t rel_i0 = i0 - p0;
39+
const int64_t rel_i0 = i0 - p0; // relative i0 in src0
4040
int64_t src_idx;
4141

4242
if (rel_i0 < 0) {

0 commit comments

Comments
 (0)