From 8df5c29f1990ec7099fd0094534c06d780b4d468 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 7 Dec 2023 21:11:24 +0200 Subject: [PATCH] metal : print resource path --- ggml-metal.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ggml-metal.m b/ggml-metal.m index 88ea98215a4f07..f9bd69dc84bbe7 100644 --- a/ggml-metal.m +++ b/ggml-metal.m @@ -235,6 +235,9 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){ NSString * sourcePath; NSString * ggmlMetalPathResources = [[NSProcessInfo processInfo].environment objectForKey:@"GGML_METAL_PATH_RESOURCES"]; + + GGML_METAL_LOG_INFO("%s: GGML_METAL_PATH_RESOURCES = %s\n", __func__, ggmlMetalPathResources ? [ggmlMetalPathResources UTF8String] : "nil"); + if (ggmlMetalPathResources) { sourcePath = [ggmlMetalPathResources stringByAppendingPathComponent:@"ggml-metal.metal"]; } else {