aboutsummaryrefslogtreecommitdiff
path: root/ggml-opencl.h
blob: 7bcc603ef8432f90a48e279168ba577f2b8468fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#ifdef  __cplusplus
extern "C" {
#endif

void ggml_cl_init(void);

enum ggml_blas_order {
    GGML_BLAS_ORDER_ROW_MAJOR = 101,
    GGML_BLAS_ORDER_COLUMN_MAJOR = 102,
};

enum ggml_blas_op {
    GGML_BLAS_OP_N = 111,
    GGML_BLAS_OP_T = 112,
    GGML_BLAS_OP_C = 113,
};

void ggml_cl_sgemm_wrapper(const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_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