Skip to content

Commit

Permalink
fix: fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
chraac committed Nov 29, 2024
1 parent 09efaa3 commit c5e6549
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ggml/src/ggml-qnn/backend-ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ bool ggml_qnn_supports_op(ggml_backend_qnn_device_context *ctx, const ggml_tenso
case GGML_OP_MUL_MAT:
return ggml_qnn_supports_matmul_op(ctx, op);

case GGML_OP_VIEW:
return true;
default:
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion ggml/src/ggml-qnn/ggml-qnn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ size_t ggml_backend_qnn_buffer_type_get_alignment(ggml_backend_buffer_type_t buf
size_t ggml_backend_qnn_buffer_type_get_max_size(ggml_backend_buffer_type_t buft) {
GGML_UNUSED(buft);
// TODO: get the max size from device
return (1024 * 1024 * 1024);
return (2 * 1024 * 1024 * 1024);
}

bool ggml_backend_qnn_buffer_is_host(ggml_backend_buffer_type_t buft) {
Expand Down

0 comments on commit c5e6549

Please sign in to comment.