For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
use_mi355_ssd
def use_mi355_ssd(nheads: Int, ngroups: Int, head_dim: Int, dstate: Int, y_addr: Int, x_addr: Int, x_ld: Int, b_addr: Int, c_addr: Int, bc_ld: Int, d_stride: Int, y_packed: Bool) -> Bool
Returns whether the MI355 chunk state and output kernels can take a launch: P 64, N 128, an even number of heads per group, x, B, C and y as plain rows read and written 16 bytes a lane (16-byte aligned, row strides a multiple of 8 elements), a packed row-major y (y_packed: strides (H P, P, 1), since the output kernel writes y as dense [T, H, P]), and D, if any, contiguous (d_stride 1). They are the chunked scan's only path on AMD, so a launch they cannot take stays on the serial scan.
Returns: