2023-06-06 19:33:23 +00:00
|
|
|
#pragma once
|
|
|
|
|
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-07-17 17:03:51 +00:00
|
|
|
GGML_API void * ggml_cuda_host_malloc(size_t size);
|
|
|
|
GGML_API void ggml_cuda_host_free(void * ptr);
|
|
|
|
GGML_API void ggml_cuda_host_register(void * ptr, size_t size);
|
|
|
|
GGML_API void ggml_cuda_host_unregister(void * ptr);
|
2023-04-29 00:04:18 +00:00
|
|
|
|
2023-07-10 15:32:06 +00:00
|
|
|
// backend API
|
|
|
|
|
2023-07-17 17:03:51 +00:00
|
|
|
GGML_API struct ggml_backend * ggml_backend_cuda_init();
|
2023-06-12 12:44:16 +00:00
|
|
|
|
2023-05-13 13:38:36 +00:00
|
|
|
|
2023-04-20 01:14:14 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|