triton.language.static_print¶
- triton.language.static_print(*values, sep: str = ' ', end: str = '\n', file=None, flush=False)¶
在编译时打印数值。参数与内置的
print
相同。注意:调用Python内置函数
print
与此不同,它实际上映射到device_print
,后者对参数有特殊要求。tl.static_print(f"BLOCK_SIZE={BLOCK_SIZE}")