Skip to content

Commit 3b978d5

Browse files
committed
Update on "[ET-VK] 7/n Split dispatches between multiple command buffers. Split execute dispatch into multiple commands based on dispatch count."
Differential Revision: [D78360039](https://our.internmc.facebook.com/intern/diff/D78360039/) [ghstack-poisoned]
2 parents 8191831 + 2f2433e commit 3b978d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backends/vulkan/runtime/graph/ComputeGraph.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,10 @@ void ComputeGraph::execute() {
866866
// execute_initial_threshold_node_count or if its a multiple of
867867
// execute_threshold_node_count.
868868
const bool reached_threshold =
869-
encoded_node_count >= config_.execute_initial_threshold_node_count &&
869+
encoded_node_count >= config_.execute_initial_threshold_node_count &&
870870
((encoded_node_count - config_.execute_initial_threshold_node_count) %
871-
config_.execute_threshold_node_count ==
872-
0);
871+
config_.execute_threshold_node_count ==
872+
0);
873873

874874
// Create a new command buffer when threashold is reached
875875
if (reached_threshold) {

0 commit comments

Comments
 (0)