Skip to content

Commit 3d1baa4

Browse files
ziereisElias Joseph
authored andcommitted
Fixing missing Metal HAL allocator parent device reference. (#20254)
Signed-off-by: Thomas Ziereis <[email protected]> Signed-off-by: Elias Joseph <[email protected]>
1 parent 1ad60c2 commit 3d1baa4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/src/iree/hal/drivers/metal/direct_allocator.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ iree_status_t iree_hal_metal_allocator_create(
6969

7070
if (iree_status_is_ok(status)) {
7171
iree_hal_resource_initialize(&iree_hal_metal_allocator_vtable, &allocator->resource);
72+
allocator->parent_device = parent_device;
7273
allocator->device = [device retain]; // +1
7374
allocator->is_unified_memory = [device hasUnifiedMemory];
7475
allocator->resource_tracking_mode = resource_tracking_mode;

0 commit comments

Comments
 (0)