2023-04-28 23:31:56 +00:00
|
|
|
#include "ggml.h"
|
2023-04-21 19:59:17 +00:00
|
|
|
|
2023-04-20 01:14:14 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-05-01 16:11:07 +00:00
|
|
|
void ggml_init_cublas(void);
|
2023-04-21 19:59:17 +00:00
|
|
|
|
2023-05-01 16:11:07 +00:00
|
|
|
bool ggml_cuda_can_mul_mat(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);
|
|
|
|
size_t ggml_cuda_mul_mat_get_wsize(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst);
|
|
|
|
void ggml_cuda_mul_mat(const struct ggml_tensor * src0, const struct ggml_tensor * src1, struct ggml_tensor * dst, void * wdata, size_t wsize);
|
2023-04-21 19:59:17 +00:00
|
|
|
|
2023-05-01 16:11:07 +00:00
|
|
|
// TODO: export these with GGML_API
|
2023-04-29 00:04:18 +00:00
|
|
|
void * ggml_cuda_host_malloc(size_t size);
|
|
|
|
void ggml_cuda_host_free(void * ptr);
|
|
|
|
|
2023-05-09 09:05:58 +00:00
|
|
|
void ggml_cuda_transform_tensor(struct ggml_tensor * tensor);
|
|
|
|
|
2023-04-20 01:14:14 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|