fix cuda build error

This commit is contained in:
mqy 2023-06-18 14:07:33 +08:00
parent 67bb367962
commit 2193ab6281

View File

@ -2544,7 +2544,7 @@ bool ggml_cuda_is_gpu_offloading(struct ggml_tensor * tensor) {
bool ggml_cuda_compute_forward(struct ggml_compute_params * params, struct ggml_tensor * tensor){ bool ggml_cuda_compute_forward(struct ggml_compute_params * params, struct ggml_tensor * tensor){
ggml_cuda_func_t func; ggml_cuda_func_t func;
const bool any_on_device = is_gpu_offloading(tensor); const bool any_on_device = ggml_cuda_is_gpu_offloading(tensor);
switch (tensor->op) { switch (tensor->op) {
case GGML_OP_ADD: case GGML_OP_ADD: