Skip to content

Commit f161463

Browse files
authored
metal : allow ops to run concurrently (#15929)
* metal : run graphs ops concurrently ggml-ci * cont : add flags for debugging and disabling concurrency ggml-ci * cont : refactor and handle fusing ggml-ci * cont : simplify - no need to use GPU address ggml-ci * cont : prepare mem ranges for reuse + add ggml-metal-common.cpp ggml-ci * cont : avoid redundant keywords in cpp [no ci] * metal : reorder graph for better concurrency ggml-ci * metal : fix race on mem pool buffers ggml-ci * cont : add env GGML_METAL_GRAPH_OPTIMIZE_DISABLE ggml-ci * cont : refactor, optimize, add comments ggml-ci * cont : refactor ggml-metal.m ggml-ci * minor : update logs [no ci]
1 parent 84d7b2f commit f161463

File tree

4 files changed

+719
-38
lines changed

4 files changed

+719
-38
lines changed

ggml/src/ggml-metal/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ message(STATUS "Metal framework found")
66

77
ggml_add_backend_library(ggml-metal
88
ggml-metal.m
9+
ggml-metal-common.cpp
910
)
1011

1112
target_link_libraries(ggml-metal PRIVATE

0 commit comments

Comments
 (0)