mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			785 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			785 B
		
	
	
	
		
			C
		
	
	
	
	
	
#pragma once
 | 
						|
 | 
						|
struct ggml_context;
 | 
						|
struct ggml_tensor;
 | 
						|
struct ggml_cgraph;
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
extern "C" {
 | 
						|
#endif
 | 
						|
 | 
						|
struct ggml_mpi_context;
 | 
						|
 | 
						|
void ggml_mpi_backend_init(void);
 | 
						|
void ggml_mpi_backend_free(void);
 | 
						|
 | 
						|
struct ggml_mpi_context * ggml_mpi_init(void);
 | 
						|
void ggml_mpi_free(struct ggml_mpi_context * ctx);
 | 
						|
 | 
						|
int ggml_mpi_rank(struct ggml_mpi_context * ctx);
 | 
						|
 | 
						|
void ggml_mpi_eval_init(
 | 
						|
        struct ggml_mpi_context * ctx_mpi,
 | 
						|
                            int * n_tokens,
 | 
						|
                            int * n_past,
 | 
						|
                            int * n_threads);
 | 
						|
 | 
						|
void ggml_mpi_graph_compute(
 | 
						|
        struct ggml_mpi_context * ctx_mpi,
 | 
						|
        struct ggml_context     * ctx,
 | 
						|
             struct ggml_cgraph * gf,
 | 
						|
                            int   n_layers);
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif
 |