mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
98ed165574
* Add opencl release memory * Rename function name
26 lines
920 B
C
26 lines
920 B
C
#pragma once
|
|
|
|
#include "ggml.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void ggml_cl_init(void);
|
|
|
|
void ggml_cl_mul(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);
|
|
bool ggml_cl_can_mul_mat(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);
|
|
size_t ggml_cl_mul_mat_get_wsize(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);
|
|
void ggml_cl_mul_mat(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst, void * wdata, size_t wsize);
|
|
|
|
void * ggml_cl_host_malloc(size_t size);
|
|
void ggml_cl_host_free(void * ptr);
|
|
|
|
void ggml_cl_free_data(const struct ggml_tensor* tensor);
|
|
|
|
void ggml_cl_transform_tensor(struct ggml_tensor * tensor);
|
|
void ggml_cl_load_data(const char * fname, struct ggml_tensor * tensor, size_t offset);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|