metal : release descriptors
ggml-ci
This commit is contained in:
parent
7fb39e39e9
commit
b9126fe364
1 changed files with 3 additions and 0 deletions
|
@ -1070,9 +1070,12 @@ static bool ggml_backend_metal_buffer_rset_init(struct ggml_backend_metal_buffer
|
|||
ctx->rset = [device newResidencySetWithDescriptor:desc error:&error];
|
||||
if (error) {
|
||||
GGML_LOG_ERROR("%s: error: %s\n", __func__, [[error description] UTF8String]);
|
||||
[desc release];
|
||||
return false;
|
||||
}
|
||||
|
||||
[desc release];
|
||||
|
||||
for (int i = 0; i < ctx->n_buffers; i++) {
|
||||
[ctx->rset addAllocation:ctx->buffers[i].metal];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue