Skip to content

Commit

Permalink
Fix some nodes are not checked with GGML_VULKAN_CHECK_RESULTS enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtavenrath committed Sep 8, 2024
1 parent 28506e5 commit 9dc0223
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ggml/src/ggml-vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6478,14 +6478,18 @@ GGML_CALL static ggml_status ggml_backend_vk_graph_compute(ggml_backend_t backen
}

bool submit = (submitted_nodes >= submit_count) || (i == last_node);


bool enqueued = ggml_vk_build_graph(ctx, cgraph->nodes[i], i, cgraph->nodes[submit_node_idx], submit_node_idx, false, i == last_node, submit);

if (enqueued) {
++submitted_nodes;

#ifndef GGML_VULKAN_CHECK_RESULTS
if (first_node_in_batch) {
first_node_in_batch = false;
}
#endif
}

if (submit) {
Expand Down

0 comments on commit 9dc0223

Please sign in to comment.