Regression (0.66.0): 在 #10543 重构为 *args 重载后,两个参数的 max/min 在 CUDA 上出现故障
作者: ryneches创建于 2026年7月31日更新于 2026年9月8日
标签bugCUDA
PR #10543 ("Refactored min/max functionality into overloads", commit abd1def2b) changed how numba types and lowers the max and min builtins. The PR removed the Max and Min typing templates from numba/core/typing/builtins.py. It also removed the @lower_builtin handlers from numba/cpython/builtins.py. In their place, the PR added @overload implementations that use *args:
@overload(max)
def ol_max(*x):
for ty in x:
if not isinstance(ty, types.Number):
return None
def impl(*x): # this impl uses *args
return max_vararg(x)
return impl内容来源: numba/numba