Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions backends/vulkan/runtime/graph/ops/DynamicDispatchNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ DynamicDispatchNode::DynamicDispatchNode(
graph,
pick_shader_fn(&graph, args, resize_args),
pick_global_wg_fn(&graph, args, resize_args),
pick_local_wg_fn(&graph, args, resize_args),
pick_local_wg_fn(
&graph,
pick_global_wg_fn(&graph, args, resize_args),
args,
resize_args),
args,
params,
push_constants,
Expand All @@ -41,8 +45,8 @@ DynamicDispatchNode::DynamicDispatchNode(
void DynamicDispatchNode::encode(ComputeGraph* graph) {
shader_ = pick_shader_fn_(graph, args_, resize_args_);
global_workgroup_size_ = pick_global_wg_fn_(graph, args_, resize_args_);
local_workgroup_size_ =
utils::WorkgroupSize(pick_local_wg_fn_(graph, args_, resize_args_));
local_workgroup_size_ = utils::WorkgroupSize(
pick_local_wg_fn_(graph, global_workgroup_size_, args_, resize_args_));
DispatchNode::encode(graph);
}

Expand Down
1 change: 1 addition & 0 deletions backends/vulkan/runtime/graph/ops/DynamicDispatchNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class DynamicDispatchNode final : public DispatchNode {
const std::vector<ValueRef>&)>;
using PickLocalFn = const std::function<utils::uvec3(
ComputeGraph*,
const utils::uvec3& global_workgroup_size,
const std::vector<ArgGroup>&,
const std::vector<ValueRef>&)>;

Expand Down
1 change: 1 addition & 0 deletions backends/vulkan/test/vulkan_compute_api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3323,6 +3323,7 @@ utils::uvec3 pick_dynamic_dispatch_global_wg_size(

utils::uvec3 pick_dynamic_dispatch_local_wg_size(
ComputeGraph* graph,
const utils::uvec3& global_workgroup_size,
const std::vector<ArgGroup>& args,
const std::vector<ValueRef>& additional_args) {
return {64, 1, 1};
Expand Down
Loading