Rename cpu assist free function

This commit is contained in:
0cc4m 2024-02-06 22:54:36 +01:00
parent fd8351b9dc
commit b22e92509e
3 changed files with 3 additions and 3 deletions

View file

@ -4534,7 +4534,7 @@ void ggml_vk_graph_cleanup_cpu_assist() {
ggml_vk_graph_cleanup(ctx);
}
void ggml_vk_cleanup_cpu_assist() {
void ggml_vk_free_cpu_assist() {
ggml_backend_vk_context * ctx = &vk_instance.contexts[0];
if (!ctx->initialized || vk_instance.backends[0] == nullptr) {

View file

@ -20,7 +20,7 @@ GGML_API bool ggml_vk_compute_forward_cpu_assist(struct ggml_compute_params * pa
void ggml_vk_check_results_1_cpu_assist(struct ggml_compute_params * params, struct ggml_tensor * tensor);
#endif
GGML_API void ggml_vk_graph_cleanup_cpu_assist(void);
GGML_API void ggml_vk_cleanup_cpu_assist(void);
GGML_API void ggml_vk_free_cpu_assist(void);
// backend API
GGML_API GGML_CALL ggml_backend_t ggml_backend_vk_init(size_t dev_num);

View file

@ -1765,7 +1765,7 @@ struct llama_context {
}
#ifdef GGML_USE_VULKAN
ggml_vk_cleanup_cpu_assist();
ggml_vk_free_cpu_assist();
#endif
ggml_backend_buffer_free(buf_input);