Skip to content

Commit

Permalink
fix compile warning and error
Browse files Browse the repository at this point in the history
  • Loading branch information
mqy committed May 29, 2023
1 parent 9510af7 commit 2656ca5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -14574,13 +14574,14 @@ void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph)
{
size_t cur = 0;
enum ggml_backend compute_backend = stages[GGML_TASK_COMPUTE].backend;
GGML_ASSERT(compute_backend != GGML_BACKEND_UNKNOWN);
#if defined(GGML_USE_CUBLAS)
if (!= GGML_BACKEND_CPU) {
if (compute_backend != GGML_BACKEND_CPU) {
cur = ggml_cuda_mul_mat_get_wsize(node->src0, node->src1, node);
}
else
#elif defined(GGML_USE_CLBLAST)
if (compute_backend!= GGML_BACKEND_CPU) {
if (compute_backend != GGML_BACKEND_CPU) {
cur = ggml_cl_mul_mat_get_wsize(node->src0, node->src1, node);
}
else
Expand Down

0 comments on commit 2656ca5

Please sign in to comment.