-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3Packages.triton.tests.axpy-cuda: init
- Loading branch information
SomeoneSerge
committed
Oct 15, 2024
1 parent
ae56006
commit 2aa951f
Showing
4 changed files
with
164 additions
and
32 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...evelopment/python-modules/torch/0001-cmake.py-propagate-cmakeFlags-from-environment.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,29 @@ | ||
From c5d4087519eae6f41c80bbd8ffbcc9390db44c7f Mon Sep 17 00:00:00 2001 | ||
From: SomeoneSerge <else+aalto@someonex.net> | ||
Date: Thu, 10 Oct 2024 19:19:18 +0000 | ||
Subject: [PATCH] cmake.py: propagate cmakeFlags from environment | ||
|
||
--- | ||
tools/setup_helpers/cmake.py | 6 ++++++ | ||
1 file changed, 6 insertions(+) | ||
|
||
diff --git a/tools/setup_helpers/cmake.py b/tools/setup_helpers/cmake.py | ||
index 4b605fe5975..ea1d6a1ef46 100644 | ||
--- a/tools/setup_helpers/cmake.py | ||
+++ b/tools/setup_helpers/cmake.py | ||
@@ -332,6 +332,12 @@ class CMake: | ||
file=sys.stderr, | ||
) | ||
print(e, file=sys.stderr) | ||
+ | ||
+ # Nixpkgs compat: | ||
+ if "cmakeFlags" in os.environ: | ||
+ import shlex | ||
+ args.extend(shlex.split(os.environ["cmakeFlags"])) | ||
+ | ||
# According to the CMake manual, we should pass the arguments first, | ||
# and put the directory as the last element. Otherwise, these flags | ||
# may not be passed correctly. | ||
-- | ||
2.46.0 | ||
|
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