[Misc] remove warning if triton>=3.2.0 (#16553)

Signed-off-by: DefTruth <qiustudent_r@163.com>
This commit is contained in:
DefTruth 2025-04-14 17:39:47 +08:00 committed by GitHub
parent e51929ebca
commit ce4ddd2d1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,11 +39,12 @@ is_hip_ = current_platform.is_rocm()
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# TODO: Remove this when triton>=3.2.0. This issue will not affect performance # Only print the following warnings when triton version < 3.2.0.
# and accuracy. # The issue won't affect performance or accuracy.
logger.warning( if triton.__version__ < '3.2.0':
"The following error message 'operation scheduled before its operands' " logger.warning(
"can be ignored.") "The following error message 'operation scheduled before its operands' "
"can be ignored.")
@triton.jit @triton.jit