Skip to content

Commit

Permalink
metal : print resource path
Browse files Browse the repository at this point in the history
ggml-ci
  • Loading branch information
ggerganov committed Dec 7, 2023
1 parent 847d806 commit 1e58305
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1e58305

Please sign in to comment.