mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
[FRONTEND] Fix specialization on triton integer types (#2236)
https://github.com/openai/triton/issues/2231
This commit is contained in:
@@ -306,7 +306,7 @@ class JITFunction(KernelInterface[T]):
|
||||
else (False,)'
|
||||
elif 'Tensor' in arg_annotation:
|
||||
return f'({arg}.data_ptr() % {JITFunction.divisibility} == 0)'
|
||||
elif arg_annotation == 'int':
|
||||
elif 'int' in arg_annotation or 'bool' in arg_annotation:
|
||||
return f'({arg} % {JITFunction.divisibility} == 0, {arg} % {JITFunction.divisibility_8} == 0, {arg} == 1)'
|
||||
else:
|
||||
return '(False,)'
|
||||
|
||||
Reference in New Issue
Block a user