forked from conda-forge/pytorch-cpu-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request conda-forge#339 from h-vetinari/cmake
- Loading branch information
Showing
24 changed files
with
578 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0001-Force-usage-of-python-3-and-error-without-numpy.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0006-fix-3.13-pickle-error-in-serialization.py-136034.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0007-Allow-users-to-overwrite-ld-with-environment-variabl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0009-Fix-test-test_linalg.py-for-NumPy-2-136800.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0010-Fixes-NumPy-2-test-failures-in-test_torch.py-137740.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0011-Use-BLAS_USE_CBLAS_DOT-for-OpenBLAS-builds.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0014-CD-Enable-Python-3.13-on-windows-138095.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0015-simplify-torch.utils.cpp_extension.include_paths-use.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0016-point-include-paths-to-PREFIX-include.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0017-Add-conda-prefix-to-inductor-include-paths.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0018-make-ATEN_INCLUDE_DIR-relative-to-TORCH_INSTALL_PREF.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
recipe/patches/0019-remove-DESTINATION-lib-from-CMake-install-TARGETS-di.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
recipe/patches/0020-make-library-name-in-test_mutable_custom_op_fixed_la.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 79ee5dcac30f2eba891af961f7649d15dfc6ce63 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <h.vetinari@gmx.com> | ||
Date: Thu, 30 Jan 2025 13:23:14 +1100 | ||
Subject: [PATCH 20/21] make library name in | ||
`test_mutable_custom_op_fixed_layout{,2}` unique | ||
|
||
Suggested-By: Daniel Petry <dpetry@anaconda.com> | ||
--- | ||
test/inductor/test_torchinductor.py | 6 ++++-- | ||
1 file changed, 4 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/test/inductor/test_torchinductor.py b/test/inductor/test_torchinductor.py | ||
index 610f5d27332..28f85e228d2 100644 | ||
--- a/test/inductor/test_torchinductor.py | ||
+++ b/test/inductor/test_torchinductor.py | ||
@@ -10628,7 +10628,8 @@ class CommonTemplate: | ||
@requires_gpu() | ||
@config.patch(implicit_fallbacks=True) | ||
def test_mutable_custom_op_fixed_layout2(self): | ||
- with torch.library._scoped_library("mylib", "DEF") as lib: | ||
+ unique_lib_name = f"mylib_{id(self)}" # Make unique name using test instance id | ||
+ with torch.library._scoped_library(unique_lib_name, "DEF") as lib: | ||
mod = nn.Conv2d(3, 128, 1, stride=1, bias=False).to(device=GPU_TYPE) | ||
inp = torch.rand(2, 3, 128, 128, device=GPU_TYPE) | ||
expected_stride = mod(inp).clone().stride() | ||
@@ -10681,7 +10682,8 @@ class CommonTemplate: | ||
|
||
@config.patch(implicit_fallbacks=True) | ||
def test_mutable_custom_op_fixed_layout(self): | ||
- with torch.library._scoped_library("mylib", "DEF") as lib: | ||
+ unique_lib_name = f"mylib_{id(self)}" # Make unique name using test instance id | ||
+ with torch.library._scoped_library(unique_lib_name, "DEF") as lib: | ||
lib.define( | ||
"copy_(Tensor(a!) dst, Tensor src) -> ()", | ||
tags=torch.Tag.needs_fixed_stride_order, |
Oops, something went wrong.