summaryrefslogtreecommitdiff
path: root/ggml-cuda.h
diff options
context:
space:
mode:
authorfraxy-v <65565042+fraxy-v@users.noreply.github.com>2024-05-19 01:44:42 +0300
committerGitHub <noreply@github.com>2024-05-19 00:44:42 +0200
commitf5bf761747988ee1832766f7d1433739aff810da (patch)
tree54601f9a26ed04531122e338ab55484547be2bf4 /ggml-cuda.h
parent059031b8c40e1f4ba60586842c5b1ed3ddf61842 (diff)
Capture CUDA logging output (#7298)
* logging: output capture in cuda module * fix compile error * fix: vsnprintf terminates with 0, string use not correct * post review * Update llama.cpp Co-authored-by: slaren <slarengh@gmail.com> * Update llama.cpp Co-authored-by: slaren <slarengh@gmail.com> --------- Co-authored-by: slaren <slarengh@gmail.com>
Diffstat (limited to 'ggml-cuda.h')
-rw-r--r--ggml-cuda.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ggml-cuda.h b/ggml-cuda.h
index 5eb4af40..d7903c66 100644
--- a/ggml-cuda.h
+++ b/ggml-cuda.h
@@ -38,6 +38,7 @@ GGML_API GGML_CALL void ggml_backend_cuda_get_device_memory(int device, size_t *
GGML_API GGML_CALL bool ggml_backend_cuda_register_host_buffer(void * buffer, size_t size);
GGML_API GGML_CALL void ggml_backend_cuda_unregister_host_buffer(void * buffer);
+GGML_API void ggml_backend_cuda_log_set_callback(ggml_log_callback log_callback, void * user_data);
#ifdef __cplusplus
}
#endif