mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-13 04:00:16 +00:00
fix: Error when running a non-exist op for Ascend NPU(#9303)
This commit is contained in:
parent
00ba2ff781
commit
6e1aeaf7ab
@ -1942,7 +1942,7 @@ GGML_CALL ggml_backend_t ggml_backend_cann_init(int32_t device) {
|
|||||||
GGML_CANN_LOG_ERROR("%s: error: failed to allocate context\n", __func__);
|
GGML_CANN_LOG_ERROR("%s: error: failed to allocate context\n", __func__);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
ggml_cann_set_device(ctx->device);
|
||||||
ggml_backend_t cann_backend =
|
ggml_backend_t cann_backend =
|
||||||
new ggml_backend{/* .guid = */ ggml_backend_cann_guid(),
|
new ggml_backend{/* .guid = */ ggml_backend_cann_guid(),
|
||||||
/* .interface = */ ggml_backend_cann_interface,
|
/* .interface = */ ggml_backend_cann_interface,
|
||||||
|
Loading…
Reference in New Issue
Block a user