Threadgroup geometry for run_metal_kernel.
Mirrors the two MTLSize arguments passed to
dispatchThreadgroups:threadsPerThreadgroup: — the outer grid
of threadgroups and the per-threadgroup thread count, both in 3-D.
Attributes
gridstd::array<std::size_t, 3>Threadgroup grid extent (x, y, z). Defaults to
{1, 1, 1}.threadsstd::array<std::size_t, 3>Threads per threadgroup (x, y, z). Defaults to
{1, 1, 1}. Total threads product must not exceed the device's maxTotalThreadsPerThreadgroup.Notes
Total threads launched = product(grid) * product(threads). Callers
are responsible for sizing this to cover output_shape.