Skip to content

Commit 19f8845

Browse files
committed
ci : try to enable memory leak detection for Mac
1 parent 537d0d4 commit 19f8845

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
-DGGML_METAL_SHADER_DEBUG=ON \
8989
-DGGML_RPC=ON
9090
cmake --build build --config Release -j $(sysctl -n hw.logicalcpu)
91+
leaks -atExit -- ./build/bin/test-thread-safety -hf ggml-org/gemma-3-270m-qat-GGUF -ngl 99 -p "$(printf 'hello %.0s' {1..128})" -n 16 -c 512 -ub 32 -np 2 -t 2 -lv 1
9192
9293
- name: Test
9394
id: cmake_test

ggml/src/ggml-metal/ggml-metal.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,9 @@ @implementation GGMLMetalClass
17051705
return res;
17061706
}
17071707

1708-
return ggml_metal_compile_kernel(backend, base, name, nil);
1708+
MTLFunctionConstantValues * cv = [[MTLFunctionConstantValues alloc] init];
1709+
1710+
return ggml_metal_compile_kernel(backend, base, name, cv);
17091711
}
17101712
}
17111713

0 commit comments

Comments
 (0)