flashinfer.comm._ulysses_lowp.capability¶
- flashinfer.comm._ulysses_lowp.capability(device: device | str | int | None = None) Dict[str, Any]¶
Describe availability of the ulysses_lowp kernels on the current device.
Reports the grid the device runs rather than one fixed grid:
(8, 9)(SM89) and(12, 0)(SM120) runUlyssesLowpSageLayout(Q_GROUP=32, K_GROUP=64);(9, 0)(SM90 Hopper) runsUlyssesLowpSageLayoutSM90(Q_GROUP=16, K_GROUP=128). Supported means that architecture’s module loaded and its compiled layout constants (Q_GROUP, K_GROUP, HEAD_DIM) match that layout’s Python-side values.layout_classnames the class to instantiate – resolve it withgetattr(flashinfer.comm._ulysses_lowp, cap["layout_class"])– and is None exactly whensupportedis False. Only the device’s own module is probed, so this never builds a translation unit the device cannot launch.supported_head_dimslists the compiled dimensions (64 and 128).compiled_head_dimretains the default dimension, 128, for compatibility.Because the answer follows the device,
supportedalone does not mean “the module-level functions will run”: those stay pinned to the SM89/SM120 grid. A caller pinned to one grid must checklayout_class.- Parameters:
device – CUDA device to probe;
Noneuses the current device.- Returns:
Dictionary of device capability, compiled grid, supported head dimensions, availability and layout class name.