Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
it isn't possible to reach this code because
all these functions are invoked by ggml_compute_forward_dup
if and only if src0->type != dst->type
  • Loading branch information
smeso committed Aug 26, 2024
1 parent 0ae05b6 commit be8aba9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -8146,11 +8146,6 @@ static void ggml_compute_forward_dup_f16(
const int ith = params->ith; // thread index
const int nth = params->nth; // number of threads

if (ggml_is_contiguous(src0) && ggml_is_contiguous(dst) && src0->type == dst->type) {
ggml_compute_forward_dup_same_cont(params, dst);
return;
}

// parallelize by rows
const int nr = ne01;
// number of rows per thread
Expand Down Expand Up @@ -8415,11 +8410,6 @@ static void ggml_compute_forward_dup_bf16(
const int ith = params->ith; // thread index
const int nth = params->nth; // number of threads

if (ggml_is_contiguous(src0) && ggml_is_contiguous(dst) && src0->type == dst->type) {
ggml_compute_forward_dup_same_cont(params, dst);
return;
}

// parallelize by rows
const int nr = ne01;
// number of rows per thread
Expand Down Expand Up @@ -8771,11 +8761,6 @@ static void ggml_compute_forward_dup_f32(
const int ith = params->ith; // thread index
const int nth = params->nth; // number of threads

if (ggml_is_contiguous(src0) && ggml_is_contiguous(dst) && src0->type == dst->type) {
ggml_compute_forward_dup_same_cont(params, dst);
return;
}

// parallelize by rows
const int nr = ne01;
// number of rows per thread
Expand Down

0 comments on commit be8aba9

Please sign in to comment.