Skip to content

Commit f0cfae4

Browse files
committed
Remove some comments
1 parent 51aae63 commit f0cfae4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ggml/src/ggml-webgpu/ggml-webgpu.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ struct webgpu_context_struct {
248248

249249
webgpu_pipeline memset_pipeline;
250250
webgpu_pipeline mul_mat_pipeline[30][2];
251-
webgpu_pipeline set_rows_pipeline[1][2]; // dst->type, vectorized (0 for vectorized, 1 for non vectorized)
251+
webgpu_pipeline set_rows_pipeline[1][2]; // dst->type, vectorized
252252
webgpu_pipeline get_rows_pipeline[30];
253253
webgpu_pipeline get_rows_f32_no_vec_pipeline;
254254
webgpu_pipeline cpy_pipeline[2][2]; // src type, dst type
@@ -770,7 +770,6 @@ static std::optional<webgpu_command> ggml_webgpu_set_rows(webgpu_context & ctx,
770770

771771
int vectorized = src->ne[0] % 4 == 0;
772772
webgpu_pipeline pipeline = ctx->set_rows_pipeline[0][vectorized];
773-
// if not evenly divisble by 4, use the non-vectorized version
774773
uint32_t threads;
775774
if (vectorized) {
776775
threads = (src->ne[1] * src->ne[2] * src->ne[3]) * (src->ne[0] / 4);

ggml/src/ggml-webgpu/wgsl-shaders/set_rows.tmpl.wgsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ fn main(@builtin(global_invocation_id) gid: vec3<u32>) {
104104
let i_dst_row = params.offset_dst + idx_high_val * params.stride_dst1 + i_src2 * params.stride_dst2 + i_src3 * params.stride_dst3;
105105
let i_src_row = params.offset_src + i_src1 * params.stride_src1 + i_src2 * params.stride_src2 + i_src3 * params.stride_src3;
106106

107-
// starts at what element of that row?
108107
let col_idx = (gid.x % elems_per_row);
109108
dst[i_dst_row/{{VEC_SIZE}} + col_idx] = {{DST_TYPE}}(src[i_src_row/{{VEC_SIZE}} + col_idx]);
110109
}

0 commit comments

Comments
 (0)