Skip to content

Commit 3ea6797

Browse files
committed
backport another PY_SSIZE_T_CLEAN patch
conda-forge/triton-feedstock@07a8ebb alone was not enough
1 parent 3f1b8be commit 3ea6797

18 files changed

+61
-40
lines changed

recipe/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ source:
6767
- patches/0015-Do-not-check-out-nccl-when-not-building-it.patch
6868
# skip a test that fails with numpy 2.3; can be dropped for pytorch>2.7
6969
- patches/0016-skip-test_norm_matrix_degenerate_shapes-on-numpy-2.3.patch
70+
# backport https://github.com/pytorch/pytorch/pull/127702
71+
- patches/0017-Define-PY_SSIZE_T_CLEAN-before-include-Python.h.patch
7072
- patches_submodules/fbgemm/0001-remove-DESTINATION-lib-from-CMake-install-directives.patch # [win]
7173
- patches_submodules/tensorpipe/0001-switch-away-from-find_package-CUDA.patch
7274

recipe/patches/0001-Force-usage-of-python-3-and-error-without-numpy.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
From c559bd443998c2910991c07245fdc15e4fe1fcdd Mon Sep 17 00:00:00 2001
1+
From c7b809486c9401ea5a9abaaf598803c88a9d7da5 Mon Sep 17 00:00:00 2001
22
From: Mark Harfouche <[email protected]>
33
Date: Sun, 1 Sep 2024 17:35:40 -0400
4-
Subject: [PATCH 01/16] Force usage of python 3 and error without numpy
4+
Subject: [PATCH 01/17] Force usage of python 3 and error without numpy
55

66
---
77
cmake/Dependencies.cmake | 6 +++---
88
1 file changed, 3 insertions(+), 3 deletions(-)
99

1010
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
11-
index be45936a8ea..4bc52c05d87 100644
11+
index 5227204b041..47917899943 100644
1212
--- a/cmake/Dependencies.cmake
1313
+++ b/cmake/Dependencies.cmake
1414
@@ -871,9 +871,9 @@ if(BUILD_PYTHON)

recipe/patches/0002-Help-find-numpy.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 5f3b9a4f650af3e04f372976c25029c069d620a9 Mon Sep 17 00:00:00 2001
1+
From dbafa6c2e900de35d5d4b2633bf80669dde3c9d6 Mon Sep 17 00:00:00 2001
22
From: Mark Harfouche <[email protected]>
33
Date: Tue, 1 Oct 2024 00:28:40 -0400
4-
Subject: [PATCH 02/16] Help find numpy
4+
Subject: [PATCH 02/17] Help find numpy
55

66
---
77
tools/setup_helpers/cmake.py | 6 ++++++

recipe/patches/0003-Fix-duplicate-linker-script.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From f5156dc8c73d723b33a7803d0a02573cd37dbb74 Mon Sep 17 00:00:00 2001
1+
From c244e05d6bbef0b34777ec15ff98ae69bcc5db86 Mon Sep 17 00:00:00 2001
22
From: Jeongseok Lee <[email protected]>
33
Date: Sun, 3 Nov 2024 01:12:36 -0700
4-
Subject: [PATCH 03/16] Fix duplicate linker script
4+
Subject: [PATCH 03/17] Fix duplicate linker script
55

66
---
77
setup.py | 4 +++-

recipe/patches/0004-Allow-overriding-CUDA-related-paths.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 031628829de451eae20fd8a49a2785015b40af5e Mon Sep 17 00:00:00 2001
1+
From 45c8ecafa220144796b462cab59e9457e893bf05 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]>
33
Date: Wed, 27 Nov 2024 13:47:23 +0100
4-
Subject: [PATCH 04/16] Allow overriding CUDA-related paths
4+
Subject: [PATCH 04/17] Allow overriding CUDA-related paths
55

66
---
77
cmake/Modules/FindCUDAToolkit.cmake | 2 +-

recipe/patches/0005-Use-BLAS_USE_CBLAS_DOT-for-OpenBLAS-builds.patch

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From c36fe22f0b7a8d95ba04b6c3c8358a70a552ff71 Mon Sep 17 00:00:00 2001
1+
From 9e6e570d3cd3b068ce06885b78ce54e26bd6928f Mon Sep 17 00:00:00 2001
22
From: Isuru Fernando <[email protected]>
33
Date: Wed, 18 Dec 2024 03:59:00 +0000
4-
Subject: [PATCH] Use BLAS_USE_CBLAS_DOT for OpenBLAS builds
4+
Subject: [PATCH 05/17] Use BLAS_USE_CBLAS_DOT for OpenBLAS builds
55

66
There are two calling conventions for *dotu functions
77

@@ -31,7 +31,7 @@ functional calls.
3131
1 file changed, 2 insertions(+)
3232

3333
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
34-
index 5227204b041..d800e950540 100644
34+
index 47917899943..9886a284d4e 100644
3535
--- a/cmake/Dependencies.cmake
3636
+++ b/cmake/Dependencies.cmake
3737
@@ -182,6 +182,7 @@ elseif(BLAS STREQUAL "OpenBLAS")
@@ -50,6 +50,3 @@ index 5227204b041..d800e950540 100644
5050
else()
5151
message(WARNING "MKL could not be found. Defaulting to Eigen")
5252
set(CAFFE2_USE_EIGEN_FOR_BLAS ON)
53-
--
54-
2.47.1
55-

recipe/patches/0006-fix-issue-142484.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 46719673ce79f2a8abe546502f18e0f324fb5e47 Mon Sep 17 00:00:00 2001
1+
From 93fb01e3ef83d8deefc717c771aa9d3fd905da3e Mon Sep 17 00:00:00 2001
22
From: "Zheng, Zhaoqiong" <[email protected]>
33
Date: Fri, 27 Dec 2024 13:49:36 +0800
4-
Subject: [PATCH 06/16] fix issue 142484
4+
Subject: [PATCH 06/17] fix issue 142484
55

66
From https://github.com/pytorch/pytorch/pull/143894
77
---

recipe/patches/0007-Fix-FindOpenBLAS.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From a851c7801c7c6d29a2e620a80067e975bbd9bd96 Mon Sep 17 00:00:00 2001
1+
From 1a2259bd3d5e0820122721c9b31f04979c87ea3d Mon Sep 17 00:00:00 2001
22
From: Bas Zalmstra <[email protected]>
33
Date: Thu, 16 May 2024 10:46:49 +0200
4-
Subject: [PATCH 07/16] Fix FindOpenBLAS
4+
Subject: [PATCH 07/17] Fix FindOpenBLAS
55

66
---
77
cmake/Modules/FindOpenBLAS.cmake | 15 +++++++++------

recipe/patches/0008-point-include-paths-to-PREFIX-include.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 0fc66dec5492489915e2a08dfbdd22930dbd51aa Mon Sep 17 00:00:00 2001
1+
From c0da591c99f601fc2c5cc2b1c50b6d51052c8e5e Mon Sep 17 00:00:00 2001
22
From: "H. Vetinari" <[email protected]>
33
Date: Thu, 23 Jan 2025 22:58:14 +1100
4-
Subject: [PATCH 08/16] point include paths to $PREFIX/include
4+
Subject: [PATCH 08/17] point include paths to $PREFIX/include
55

66
---
77
torch/utils/cpp_extension.py | 18 ++++++++++++++++++

recipe/patches/0009-Add-conda-prefix-to-inductor-include-paths.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From c8802308e80654f8a63b03d646ae3e67113c5a2d Mon Sep 17 00:00:00 2001
1+
From 28ae8ad0c497050f6ca371a58eddc2fc1798b9bb Mon Sep 17 00:00:00 2001
22
From: Daniel Petry <[email protected]>
33
Date: Tue, 21 Jan 2025 17:45:23 -0600
4-
Subject: [PATCH 09/16] Add conda prefix to inductor include paths
4+
Subject: [PATCH 09/17] Add conda prefix to inductor include paths
55

66
Currently inductor doesn't look in conda's includes and libs. This results in
77
errors when it tries to compile, if system versions are being used of

0 commit comments

Comments
 (0)