Loading...
Searching...
No Matches
TrainingProductApi.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3#pragma once
4
5#include <stddef.h>
6#include <stdint.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12// Column-major binary64 operands. Transpose flags are zero or one. A failed
13// call leaves the host output untouched and writes a terminated diagnostic.
14void* gpr_training_product_create_v1(char* error, size_t capacity);
15void gpr_training_product_destroy_v1(void* workspace);
16int gpr_training_product_gemm_v1(void* workspace, int transpose_a,
17 int transpose_b, int64_t m, int64_t n,
18 int64_t k, double alpha, const double* a,
19 int64_t lda, const double* b, int64_t ldb,
20 double beta, double* c, int64_t ldc,
21 char* error, size_t capacity);
22
23#ifdef __cplusplus
24}
25#endif
void * gpr_training_product_create_v1(char *error, size_t capacity)
int gpr_training_product_gemm_v1(void *workspace, int transpose_a, int transpose_b, int64_t m, int64_t n, int64_t k, double alpha, const double *a, int64_t lda, const double *b, int64_t ldb, double beta, double *c, int64_t ldc, char *error, size_t capacity)
void gpr_training_product_destroy_v1(void *workspace)