Skip to content

Commit

Permalink
[Metal] Fix block launching parameter (apache#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurawly authored and sergei-mironov committed Aug 8, 2018
1 parent 753dffd commit af55324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/metal/metal_module.mm
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void operator()(TVMArgs args,
MTLSize dimGrid = MTLSizeMake(
wl.grid_dim(0), wl.grid_dim(1), wl.grid_dim(2));
MTLSize dimBlock = MTLSizeMake(
wl.block_dim(0), wl.block_dim(1), wl.work_size[2]);
wl.block_dim(0), wl.block_dim(1), wl.block_dim(2));
[encoder dispatchThreadgroups: dimGrid
threadsPerThreadgroup: dimBlock];
[encoder endEncoding];
Expand Down

0 comments on commit af55324

Please sign in to comment.