warp.tile\_max ============== .. function:: warp._src.lang.tile_max(a: Tile[Scalar,tuple[int, ...]]) -> Tile[Scalar,tuple[Literal[1]]] .. hlist:: :columns: 8 * Kernel Cooperatively compute the maximum of the tile elements using all threads in the block. :param a: The tile to compute the maximum from :returns: A single-element tile holding the maximum value. .. rubric:: Example .. code-block:: python @wp.kernel def compute(): t = wp.tile_arange(64, 128) s = wp.tile_max(t) print(s) wp.launch_tiled(compute, dim=[1], inputs=[], block_dim=64) .. code-block:: text [127] = tile(shape=(1), storage=register)