Skip to content

Commit e3f771b

Browse files
committed
fix vector sizes
1 parent 403652b commit e3f771b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13190,8 +13190,8 @@ static ggml_status ggml_backend_vk_graph_compute(ggml_backend_t backend, ggml_cg
1319013190
query_create_info.queryCount = cgraph->n_nodes + 100;
1319113191
ctx->query_pool = ctx->device->device.createQueryPool(query_create_info);
1319213192
ctx->num_queries = query_create_info.queryCount;
13193-
ctx->query_fusion_names.resize(cgraph->n_nodes);
13194-
ctx->query_nodes.resize(cgraph->n_nodes);
13193+
ctx->query_fusion_names.resize(ctx->num_queries);
13194+
ctx->query_nodes.resize(ctx->num_queries);
1319513195
}
1319613196

1319713197
ctx->device->device.resetQueryPool(ctx->query_pool, 0, cgraph->n_nodes+1);

0 commit comments

Comments
 (0)