Skip to content

Conversation

@xFile3160
Copy link

Add documented hooks that let an override of halide_vulkan_acquire_context return its own VkInstance/device yet still bootstrap Halide's allocator. The weak runtime now exposes halide_vulkan_export_memory_allocator/halide_vulkan_memory_allocator_release plus a vk_release_memory_allocator helper that only tears down Halide-owned caches.
VulkanContext will lazily allocate+export Halide's allocator when an override returns nullptr. Example integration and validation lives at xFile3160@9041848.

Add documented hooks that let an override of halide_vulkan_acquire_context return its own VkInstance/device yet still bootstrap Halide's allocator.
The weak runtime now exposes halide_vulkan_export_memory_allocator/halide_vulkan_memory_allocator_release plus a vk_release_memory_allocator helper
that only tears down Halide-owned caches.
VulkanContext will lazily allocate+export Halide's allocator when an override returns nullptr.
Example integration and validation lives at 9041848.
@xFile3160
Copy link
Author

Full discussion available here: #8715 (comment)

@alexreinking
Copy link
Member

@derek-gerstmann could you review this PR? Seems you were discussing the related issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants