triton.language.cdiv

triton.language.cdiv(x, div)

Computes the ceiling division of x by div

Parameters:
  • x (Block) – the input number

  • div – the divisor

  • div – Block

This function can also be called as a member function on tensor, as x.cdiv(...) instead of cdiv(x, ...).