triton.language.static_assert

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

在编译时断言条件。不需要设置TRITON_DEBUG环境变量。

tl.static_assert(BLOCK_SIZE == 1024)