Skip to content

Commit ddd3a99

Browse files
committed
Remove redundant checks
1 parent c710560 commit ddd3a99

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ggml/src/ggml-cuda/mmf.cuh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,6 @@ static __global__ void mul_mat_f_ids(
261261
const int expert_end = expert_bounds[expert_idx + 1];
262262
const int ncols_expert = expert_end - expert_start;
263263

264-
if (ncols_expert <= 0) {
265-
return;
266-
}
267-
268264
const int tiles_for_expert = (ncols_expert + cols_per_block - 1) / cols_per_block;
269265
const int tile_idx = blockIdx.z;
270266
if (tile_idx >= tiles_for_expert) {
@@ -331,9 +327,7 @@ static __global__ void mul_mat_f_ids(
331327
}
332328
};
333329

334-
if (ntB > 0) {
335-
gather_tile(0, vals_buf[0]);
336-
}
330+
gather_tile(0, vals_buf[0]);
337331

338332
int curr_buf = 0;
339333
int next_buf = 1;

0 commit comments

Comments
 (0)