From a9e58b8524eeae9ed79d42851c685908b287abd9 Mon Sep 17 00:00:00 2001 From: sayakpaul <22957388+sayakpaul@users.noreply.github.com> Date: Mon, 12 Oct 2026 06:11:28 +0000 Subject: [PATCH] kernel-abi-check: refresh vendored ABI symbol files --- .../src/python_abi/stable_abi.toml | 33 ++++++++++++++++++- .../shim_function_versions.txt | 5 +++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/kernel-abi-check/src/python_abi/stable_abi.toml b/kernel-abi-check/src/python_abi/stable_abi.toml index 0425fba42..e79fa3331 100644 --- a/kernel-abi-check/src/python_abi/stable_abi.toml +++ b/kernel-abi-check/src/python_abi/stable_abi.toml @@ -64,6 +64,8 @@ # on all platforms.) # - abi3t_opaque: In abi3t, this struct is opaque (as if `struct_abi_kind` # was 'opaque' and `members` was missing). +# - is_static_inline_function: for `macro`: actually implemented as a static +# inline function, rather than a macro. # Removing items from this file is generally not allowed, and additions should # be considered with that in mind. See the devguide for exact rules: @@ -1872,6 +1874,22 @@ [function.PyThread_start_new_thread] added = '3.2' +# Python 3.2 macros + +[macro.Py_CLEAR] + added = '3.2' +[macro.Py_DECREF] + added = '3.2' +[macro.Py_INCREF] + added = '3.2' + is_static_inline_function = true +[macro.Py_XDECREF] + added = '3.2' + is_static_inline_function = true +[macro.Py_XINCREF] + added = '3.2' + is_static_inline_function = true + ### Python 3.3 ############################################################## @@ -2225,6 +2243,15 @@ [function.PyObject_GC_IsTracked] added = '3.9' +# Python 3.9 macros + +[macro.Py_SET_REFCNT] + added = '3.9' + is_static_inline_function = true +[macro.Py_SET_TYPE] + added = '3.9' + is_static_inline_function = true + ### Python 3.10 ############################################################# @@ -2451,7 +2478,7 @@ added = '3.12' [function.PyObject_VectorcallMethod] added = '3.12' -[macro.PY_VECTORCALL_ARGUMENTS_OFFSET] +[const.PY_VECTORCALL_ARGUMENTS_OFFSET] added = '3.12' [typedef.getbufferproc] added = '3.12' @@ -2884,3 +2911,7 @@ [function.Py_HashBuffer] added = '3.16' +[macro.Py_SETREF] + added = '3.16' +[macro.Py_XSETREF] + added = '3.16' diff --git a/kernel-abi-check/src/torch_stable_abi/shim_function_versions.txt b/kernel-abi-check/src/torch_stable_abi/shim_function_versions.txt index e4d87d2d5..f2b3590a3 100644 --- a/kernel-abi-check/src/torch_stable_abi/shim_function_versions.txt +++ b/kernel-abi-check/src/torch_stable_abi/shim_function_versions.txt @@ -136,3 +136,8 @@ torch_has_storage: TORCH_VERSION_2_14_0 torch_mps_set_arg_bytes: TORCH_VERSION_2_14_0 torch_tensor_from_pyobject: TORCH_VERSION_2_14_0 torch_tensor_to_pyobject: TORCH_VERSION_2_14_0 +torch_device_from_pyobject: TORCH_VERSION_2_15_0 +torch_device_to_pyobject: TORCH_VERSION_2_15_0 +torch_dtype_from_pyobject: TORCH_VERSION_2_15_0 +torch_dtype_to_pyobject: TORCH_VERSION_2_15_0 +torch_is_tensor_pyobject: TORCH_VERSION_2_15_0