2023-06-06 21:33:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
2023-04-29 01:31:56 +02:00
|
|
|
#include "ggml.h"
|
2023-04-21 21:59:17 +02:00
|
|
|
|
2023-04-20 03:14:14 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2023-07-17 19:03:51 +02: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 02:04:18 +02:00
|
|
|
|
2023-07-10 17:32:06 +02:00
|
|
|
// backend API
|
|
|
|
|
2023-07-17 19:03:51 +02:00
|
|
|
GGML_API struct ggml_backend * ggml_backend_cuda_init();
|
2023-06-12 14:44:16 +02:00
|
|
|
|
2023-05-13 15:38:36 +02:00
|
|
|
|
2023-04-20 03:14:14 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|