Skip to content

Commit d3d7dae

Browse files
committed
prevent crash if we ever want to build without coopmat
1 parent 8fb7a1c commit d3d7dae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,6 +2188,10 @@ static vk_device ggml_vk_get_device(size_t idx) {
21882188
device->coopmat_support = false;
21892189
}
21902190

2191+
#if !defined(GGML_VULKAN_COOPMAT_GLSLC_SUPPORT) //prevent crash if we do a non-coopmat build
2192+
device->coopmat_support = false;
2193+
#endif
2194+
21912195
std::vector<vk::QueueFamilyProperties> queue_family_props = device->physical_device.getQueueFamilyProperties();
21922196

21932197
// Try to find a non-graphics compute queue and transfer-focused queues

0 commit comments

Comments
 (0)