fix warning

This commit is contained in:
mqy 2023-06-18 18:55:44 +08:00
parent 0ec4dab864
commit 5abb8aefea
2 changed files with 2 additions and 2 deletions

View File

@ -2542,7 +2542,7 @@ bool ggml_cuda_is_gpu_offloading(struct ggml_tensor * tensor) {
|| (tensor->src1 != nullptr && tensor->src1->backend == GGML_BACKEND_GPU);
}
bool ggml_cuda_compute_forward(struct ggml_compute_params * params, struct ggml_tensor * tensor){
bool ggml_cuda_compute_forward(const struct ggml_compute_params * params, struct ggml_tensor * tensor){
ggml_cuda_func_t func;
const bool any_on_device = ggml_cuda_is_gpu_offloading(tensor);

View File

@ -32,7 +32,7 @@ void ggml_cuda_assign_buffers_no_scratch(struct ggml_tensor * tensor);
void ggml_cuda_set_main_device(int main_device);
void ggml_cuda_set_scratch_size(size_t scratch_size);
void ggml_cuda_free_scratch(void);
bool ggml_cuda_compute_forward(struct ggml_compute_params * params, struct ggml_tensor * tensor);
bool ggml_cuda_compute_forward(const struct ggml_compute_params * params, struct ggml_tensor * tensor);
#ifdef __cplusplus
}