Skip to content

Commit 70c0ea3

Browse files
mstephenson6ggerganov
authored andcommitted
whisper : use vulkan as gpu backend when available (whisper/2302)
* ggml: use vulkan as gpu backend when available Signed-off-by: Matt Stephenson <[email protected]> * whisper: enable using vk as default buffer type Signed-off-by: Matt Stephenson <[email protected]> --------- Signed-off-by: Matt Stephenson <[email protected]>
1 parent 5b2c04f commit 70c0ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-vulkan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,9 +2108,9 @@ void ggml_vk_instance_init() {
21082108
}
21092109

21102110
static void ggml_vk_init(ggml_backend_vk_context * ctx, size_t idx) {
2111-
GGML_ASSERT(idx < vk_instance.device_indices.size());
21122111
VK_LOG_DEBUG("ggml_vk_init(" << ctx->name << ", " << idx << ")");
21132112
ggml_vk_instance_init();
2113+
GGML_ASSERT(idx < vk_instance.device_indices.size());
21142114

21152115
ctx->name = GGML_VK_NAME + std::to_string(idx);
21162116

0 commit comments

Comments
 (0)