Skip to content

Commit 32f07ea

Browse files
authored
Update llama.cpp
1 parent 95573c6 commit 32f07ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ static void ggml_graph_compute_helper(std::vector<uint8_t> & buf, ggml_cgraph *
570570
// llama helpers
571571
//
572572

573-
inline void * llama_host_malloc(size_t n) {
573+
static void * llama_host_malloc(size_t n) {
574574
#ifdef GGML_USE_CUBLAS
575575
if (ggml_cublas_loaded()) {
576576
return ggml_cuda_host_malloc(n);
@@ -586,7 +586,7 @@ inline void * llama_host_malloc(size_t n) {
586586
#endif
587587
}
588588

589-
inline void llama_host_free(void * ptr) {
589+
static void llama_host_free(void * ptr) {
590590
#ifdef GGML_USE_CUBLAS
591591
if (ggml_cublas_loaded()) {
592592
return ggml_cuda_host_free(ptr);

0 commit comments

Comments
 (0)