File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ static void ggml_graph_compute_helper(std::vector<uint8_t> & buf, ggml_cgraph *
570
570
// llama helpers
571
571
//
572
572
573
- static inline void * llama_host_malloc (size_t n) {
573
+ inline void * llama_host_malloc (size_t n) {
574
574
#ifdef GGML_USE_CUBLAS
575
575
if (ggml_cublas_loaded ()) {
576
576
return ggml_cuda_host_malloc (n);
@@ -580,13 +580,13 @@ static inline void * llama_host_malloc(size_t n) {
580
580
#elif GGML_USE_METAL
581
581
return ggml_metal_host_malloc (n);
582
582
#elif GGML_USE_CPU_HBM
583
- return hbw_malloc (n)
583
+ return hbw_malloc (n);
584
584
#else
585
- return malloc (n)
585
+ return malloc (n);
586
586
#endif
587
587
}
588
588
589
- static inline void llama_host_free (void * ptr) {
589
+ inline void llama_host_free (void * ptr) {
590
590
#ifdef GGML_USE_CUBLAS
591
591
if (ggml_cublas_loaded ()) {
592
592
return ggml_cuda_host_free (ptr);
@@ -596,9 +596,9 @@ static inline void llama_host_free(void * ptr) {
596
596
#elif GGML_USE_METAL
597
597
return ggml_metal_host_free (ptr);
598
598
#elif GGML_USE_CPU_HBM
599
- return hbw_free (ptr)
599
+ return hbw_free (ptr);
600
600
#else
601
- return free (ptr)
601
+ return free (ptr);
602
602
#endif
603
603
}
604
604
You can’t perform that action at this time.
0 commit comments