Skip to content

Commit c4c805c

Browse files
authored
Merge branch 'ggml-org:master' into mradermacher
2 parents 3a9f785 + a2b0fe8 commit c4c805c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ggml/src/ggml-backend.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,10 +1240,8 @@ void ggml_backend_sched_split_graph(ggml_backend_sched_t sched, struct ggml_cgra
12401240
tensor_copy = ggml_dup_tensor_layout(sched->ctx, src);
12411241
ggml_format_name(tensor_copy, "%s#%s#%d", ggml_backend_name(backend), src->name, c);
12421242
}
1243-
if (sched->n_copies > 1) {
1244-
ggml_set_input(tensor_copy);
1245-
ggml_set_output(tensor_copy); // prevent ggml-alloc from overwriting the tensor
1246-
}
1243+
ggml_set_input(tensor_copy);
1244+
ggml_set_output(tensor_copy); // prevent ggml-alloc from overwriting the tensor
12471245
tensor_id_copy(src_id, src_backend_id, c) = tensor_copy;
12481246
SET_CAUSE(tensor_copy, "4.cpy");
12491247
}

ggml/src/ggml-cann/ggml-cann.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,10 @@ static bool ggml_backend_cann_supports_op(ggml_backend_dev_t dev, const ggml_ten
25642564
return true;
25652565
case GGML_OP_OUT_PROD:
25662566
{
2567+
#ifdef ASCEND_310P
2568+
// Ger is not supported on 310p device
2569+
return false;
2570+
#endif
25672571
switch (op->src[0]->type) {
25682572
case GGML_TYPE_F16:
25692573
case GGML_TYPE_F32:

0 commit comments

Comments
 (0)