Spaces:
Build error
Build error
File size: 1,277 Bytes
3e5595b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#pragma once
#include "ggml_v2.h"
#ifdef __cplusplus
extern "C" {
#endif
enum ggml_v2_blas_order {
GGML_V2_BLAS_ORDER_ROW_MAJOR = 101,
GGML_V2_BLAS_ORDER_COLUMN_MAJOR = 102,
};
enum ggml_v2_blas_op {
GGML_V2_BLAS_OP_N = 111,
GGML_V2_BLAS_OP_T = 112,
GGML_V2_BLAS_OP_C = 113,
};
void ggml_v2_cl_init(void);
bool ggml_v2_cl_can_mul_mat(const struct ggml_v2_tensor * src0, const struct ggml_v2_tensor * src1, struct ggml_v2_tensor * dst);
size_t ggml_v2_cl_mul_mat_get_wsize(const struct ggml_v2_tensor * src0, const struct ggml_v2_tensor * src1, struct ggml_v2_tensor * dst);
void ggml_v2_cl_mul_mat(const struct ggml_v2_tensor * src0, const struct ggml_v2_tensor * src1, struct ggml_v2_tensor * dst, void * wdata, size_t wsize);
void * ggml_v2_cl_host_malloc(size_t size);
void ggml_v2_cl_host_free(void * ptr);
void ggml_v2_cl_transform_tensor(struct ggml_v2_tensor * tensor);
void ggml_v2_cl_sgemm_wrapper(const enum ggml_v2_blas_order order, const enum ggml_v2_blas_op trans_a, const enum ggml_v2_blas_op trans_b, const int m, const int n, const int k, const float alpha, const void *host_a, const int lda, const float *host_b, const int ldb, const float beta, float *host_c, const int ldc, const int btype);
#ifdef __cplusplus
}
#endif
|