Skip to content

Commit

Permalink
update ggml_metal_file.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Sep 28, 2023
1 parent 274af56 commit 3a5f945
Show file tree
Hide file tree
Showing 2 changed files with 7,932 additions and 7,624 deletions.
3 changes: 1 addition & 2 deletions ggml-metal.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,12 @@ static void ggml_metal_log(enum ggml_log_level level, const char* format, ...){
#if 1
NSString * const msl_library_source = [[NSString alloc] initWithBytes: ggml_metal_file length: ggml_metal_file_len encoding: NSASCIIStringEncoding];
// compile from source string and show compile log
// compile from source string and show compile log
{
NSError * error = nil;

ctx->library = [ctx->device newLibraryWithSource:msl_library_source options:nil error:&error];
if (error) {
metal_printf("%s: error: %s\n", __func__, [[error description] UTF8String]);
GGML_METAL_LOG_INFO("%s: error: %s\n", __func__, [[error description] UTF8String]);
return NULL;
}
}
Expand Down
Loading

0 comments on commit 3a5f945

Please sign in to comment.