Skip to content

Commit 8df7593

Browse files
committed
Throw system error on old Vulkan driver rather than SIGABRT
1 parent da30ab5 commit 8df7593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4450,7 +4450,7 @@ static void ggml_vk_instance_init() {
44504450

44514451
if (api_version < VK_API_VERSION_1_2) {
44524452
std::cerr << "ggml_vulkan: Error: Vulkan 1.2 required." << std::endl;
4453-
GGML_ABORT("fatal error");
4453+
throw vk::SystemError(vk::Result::eErrorFeatureNotPresent, "Vulkan 1.2 required");
44544454
}
44554455

44564456
vk::ApplicationInfo app_info{ "ggml-vulkan", 1, nullptr, 0, api_version };

0 commit comments

Comments
 (0)