forked from conda-forge/torchvision-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 #4 from AnacondaRecipes/v0.11.3
torchvision 0.11.3
- Loading branch information
Showing
3 changed files
with
100 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
# cuda 9.2, gcc 7.3 | ||
# cuda 10.0, gcc 7.3 | ||
c_compiler_version: | ||
- 7.3 # [linux64] | ||
- 10 # [(osx and x86_64) or aarch64] | ||
- 12 # [osx and arm64] | ||
cxx_compiler_version: | ||
- 7.3 # [linux64] | ||
- 10 # [(osx and x86_64) or aarch64] | ||
- 12 # [osx and arm64] | ||
cudatoolkit: | ||
- 10.0 | ||
python: | ||
- 3.7 # [not (osx and arm64)] | ||
- 3.8 | ||
- 3.9 | ||
c_compiler: | ||
- vs2019 # [win] | ||
cxx_compiler: | ||
- vs2019 # [win] | ||
#cudatoolkit: | ||
# - 10.0 | ||
pytorch_variant: | ||
- cpu | ||
# - gpu | ||
# - gpu |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 08c23bd84c546334710c579f5eb00b308121a3d8 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <h.vetinari@gmx.com> | ||
Date: Tue, 21 Dec 2021 17:16:40 +1100 | ||
Subject: [PATCH] avoid hard-coded gcc | ||
|
||
--- | ||
setup.py | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/setup.py b/setup.py | ||
index 4c9e734f3..5f13168f1 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -384,7 +384,7 @@ def get_extensions(): | ||
|
||
gcc = distutils.spawn.find_executable('gcc') | ||
platform_tag = subprocess.run( | ||
- [gcc, '-print-multiarch'], stdout=subprocess.PIPE) | ||
+ [os.environ["CC"], '-print-multiarch'], stdout=subprocess.PIPE) | ||
platform_tag = platform_tag.stdout.strip().decode('utf-8') | ||
|
||
if platform_tag: | ||
-- | ||
2.32.0.windows.2 | ||
|
||
Footer |