diff options
author | 2020-08-06 09:07:30 +0800 | |
---|---|---|
committer | 2020-08-06 09:07:30 +0800 | |
commit | fa9ca8f66c0bbbabb61ec8574389bab85862741a (patch) | |
tree | 49b600455e8737030a4a5865f88f695e7e12bfff /sci-libs/pytorch/files | |
parent | sci-libs/pybids: upstream updated archive (diff) | |
download | sci-fa9ca8f66c0bbbabb61ec8574389bab85862741a.tar.gz sci-fa9ca8f66c0bbbabb61ec8574389bab85862741a.tar.bz2 sci-fa9ca8f66c0bbbabb61ec8574389bab85862741a.zip |
sci-libs/pytorch: bump to 1.6.0.
Remove virtual/python-typing dependency. It was removed from tree and only
needed by python-2.
Package-Manager: Portage-2.3.88, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'sci-libs/pytorch/files')
3 files changed, 41 insertions, 0 deletions
diff --git a/sci-libs/pytorch/files/pytorch-1.6.0-setup.patch b/sci-libs/pytorch/files/pytorch-1.6.0-setup.patch new file mode 100644 index 000000000..6a197a907 --- /dev/null +++ b/sci-libs/pytorch/files/pytorch-1.6.0-setup.patch @@ -0,0 +1,14 @@ +Index: pytorch-1.4.0_p0/setup.py +=================================================================== +--- pytorch-1.4.0_p0.orig/setup.py ++++ pytorch-1.4.0_p0/setup.py +@@ -288,9 +288,7 @@ def build_deps(): + sys.exit(1) + + check_file(os.path.join(third_party_path, "gloo", "CMakeLists.txt")) +- check_file(os.path.join(third_party_path, "pybind11", "CMakeLists.txt")) + check_file(os.path.join(third_party_path, 'cpuinfo', 'CMakeLists.txt')) +- check_file(os.path.join(third_party_path, 'tbb', 'Makefile')) + check_file(os.path.join(third_party_path, 'onnx', 'CMakeLists.txt')) + check_file(os.path.join(third_party_path, 'foxi', 'CMakeLists.txt')) + check_file(os.path.join(third_party_path, 'QNNPACK', 'CMakeLists.txt')) diff --git a/sci-libs/pytorch/files/pytorch-1.6.0-skip-tests.patch b/sci-libs/pytorch/files/pytorch-1.6.0-skip-tests.patch new file mode 100644 index 000000000..3ef2c533f --- /dev/null +++ b/sci-libs/pytorch/files/pytorch-1.6.0-skip-tests.patch @@ -0,0 +1,14 @@ +Disable expected test failures. + +Reference: https://github.com/pytorch/pytorch/issues/13746 +Reference: https://github.com/pytorch/pytorch/issues/21873 + +Index: pytorch-1.4.0_p0/caffe2/share/contrib/depthwise/CMakeLists.txt +=================================================================== +--- pytorch-1.4.0_p0.orig/caffe2/share/contrib/depthwise/CMakeLists.txt ++++ pytorch-1.4.0_p0/caffe2/share/contrib/depthwise/CMakeLists.txt +@@ -6,4 +6,3 @@ set(Caffe2_CONTRIB_DEPTHWISE3x3_TEST_CPU + ) + + set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS} ${Caffe2_CONTRIB_DEPTHWISE3x3_CPU_SRC} PARENT_SCOPE) +-set(Caffe2_CPU_TEST_SRCS ${Caffe2_CPU_TEST_SRCS} ${Caffe2_CONTRIB_DEPTHWISE3x3_TEST_CPU_SRC} PARENT_SCOPE) diff --git a/sci-libs/pytorch/files/pytorch-1.6.0-tensorpipe-unbundle-libuv.patch b/sci-libs/pytorch/files/pytorch-1.6.0-tensorpipe-unbundle-libuv.patch new file mode 100644 index 000000000..a4ba38322 --- /dev/null +++ b/sci-libs/pytorch/files/pytorch-1.6.0-tensorpipe-unbundle-libuv.patch @@ -0,0 +1,13 @@ +Index: tensorpipe/cmake/pytorch.cmake +=================================================================== +--- tensorpipe.orig/cmake/pytorch.cmake ++++ tensorpipe/cmake/pytorch.cmake +@@ -138,7 +138,7 @@ endif() + + add_library(tensorpipe ${TENSORPIPE_SRC}) + +-set(TP_BUILD_LIBUV ON) ++set(TP_BUILD_LIBUV OFF) + find_package(uv REQUIRED) + target_link_libraries(tensorpipe PRIVATE uv::uv) + |