Skip to content
Prev Previous commit
Next Next commit
cuda.core: bump torch tensor-bridge upper cap to 2.14
  • Loading branch information
leofang committed Oct 6, 2026
commit c720c0dd6b1de0e40cf776b1551366bcd720bb10
4 changes: 2 additions & 2 deletions cuda_core/cuda/core/_memoryview.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cdef dict _torch_type_cache = {}
cdef object _torch_version_ok = None

cdef inline bint _torch_version_check():
"""Return True if 2.3 <= torch <= 2.12 (known AOTI ABI range). Memoized.
"""Return True if 2.3 <= torch <= 2.14 (known AOTI ABI range). Memoized.

Lower bound: AOTI functions we use were introduced in PyTorch 2.3.
Upper bound: the ``pyobj_to_aten_handle`` trick relies on the
Expand All @@ -72,7 +72,7 @@ cdef inline bint _torch_version_check():
try:
major, minor = int(torch.__version__.split(".")[0]), \
int(torch.__version__.split(".")[1])
_torch_version_ok = (2, 3) <= (major, minor) <= (2, 12)
_torch_version_ok = (2, 3) <= (major, minor) <= (2, 14)
except (ValueError, IndexError):
_torch_version_ok = False
return <bint>_torch_version_ok
Expand Down
Loading