Commit 429e5fb8 by Leyuan Wang Committed by Tianqi Chen

[Metal] Fix block launching parameter (#1219)

parent b266dcfb
......@@ -215,7 +215,7 @@ class MetalWrappedFunc {
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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment