Skip to content

Commit 4bfcc85

Browse files
authored
metal : parallel command buffer encoding (#1860)
* metal : parallel command buffer encoding * metal : determine number of command buffers based on gf->n_threads
1 parent 6b8312e commit 4bfcc85

File tree

2 files changed

+540
-516
lines changed

2 files changed

+540
-516
lines changed

ggml-metal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ void ggml_metal_set_tensor(struct ggml_metal_context * ctx, struct ggml_tensor *
5555
void ggml_metal_get_tensor(struct ggml_metal_context * ctx, struct ggml_tensor * t);
5656

5757
// same as ggml_graph_compute but uses Metal
58+
// creates gf->n_threads command buffers in parallel
5859
void ggml_metal_graph_compute(struct ggml_metal_context * ctx, struct ggml_cgraph * gf);
5960

6061
#ifdef __cplusplus

0 commit comments

Comments
 (0)