cuda.tile.ceil#
- cuda.tile.ceil(x, /)#
Perform ceil on a tile.
Examples
tx = ct.full((4,), 3.2, dtype=ct.float32) print(f"{ct.ceil(tx):.1f}")
import cuda.tile as ct import torch @ct.kernel def kernel(): tx = ct.full((4,), 3.2, dtype=ct.float32) print(f"{ct.ceil(tx):.1f}") torch.cuda.init() ct.launch(torch.cuda.current_stream(), (1,), kernel, ()) torch.cuda.synchronize()
Output
[4.0, 4.0, 4.0, 4.0]