triton.language.device_assert

triton.language.device_assert(cond, msg='')

Assert the condition at runtime from the device.

Parameters:
  • cond – the condition to assert. This is required to be a boolean tensor.

  • msg – the message to print if the assertion fails. This is required to be a string literal.