Skip to content

Commit 2d7a110

Browse files
committed
vulkan: don't load core extensions
Fix SIGABRT on Android emulator: ``` terminating due to uncaught exception of type vk::ExtensionNotPresentError: vk::PhysicalDevice::createDevice: ErrorExtensionNotPresent ```
1 parent 1c2e774 commit 2d7a110

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4794,7 +4794,9 @@ static vk_device ggml_vk_get_device(size_t idx) {
47944794
throw std::runtime_error("Unsupported device");
47954795
}
47964796

4797-
device_extensions.push_back("VK_KHR_16bit_storage");
4797+
if (fp16_storage) {
4798+
device_extensions.push_back("VK_KHR_16bit_storage");
4799+
}
47984800

47994801
#ifdef GGML_VULKAN_VALIDATE
48004802
device_extensions.push_back("VK_KHR_shader_non_semantic_info");

0 commit comments

Comments
 (0)