Date: Thursday, August 17, 2017 @ 16:30:57 Author: svenstaro Revision: 251720
upgpkg: tensorflow 1.3.0-1 Modified: tensorflow/trunk/PKGBUILD Deleted: tensorflow/trunk/10868.patch tensorflow/trunk/11174.patch tensorflow/trunk/11949.patch -------------+ 10868.patch | 89 ---------------------------------------------------------- 11174.patch | 36 ----------------------- 11949.patch | 23 -------------- PKGBUILD | 24 +++------------ 4 files changed, 5 insertions(+), 167 deletions(-) Deleted: 10868.patch =================================================================== --- 10868.patch 2017-08-17 15:56:09 UTC (rev 251719) +++ 10868.patch 2017-08-17 16:30:57 UTC (rev 251720) @@ -1,89 +0,0 @@ -From eb197c45eda55b1047b00f1136a4fec2b8adb2d5 Mon Sep 17 00:00:00 2001 -From: Todd Wang <[email protected]> -Date: Tue, 20 Jun 2017 14:16:26 -0700 -Subject: [PATCH 1/3] [XLA] Explicitly instantiate Permute template func - -This is an attempted fix for older compilers that can't deduce the template args. ---- - tensorflow/compiler/xla/service/llvm_ir/ir_array.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc b/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc -index e401305ae73..b14104be6ad 100644 ---- a/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc -+++ b/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc -@@ -158,7 +158,7 @@ IrArray::Index IrArray::Index::SourceIndexOfTranspose( - tensorflow::gtl::ArraySlice<int64> dimension_mapping, - llvm::IRBuilder<>* builder) const { - std::vector<llvm::Value*> operand_multidim_index = -- Permute(dimension_mapping, multidim()); -+ Permute<std::vector, llvm::Value*>(dimension_mapping, multidim()); - if (linear() != nullptr && - ShapeUtil::TransposeIsBitcast(operand_shape, shape, dimension_mapping)) { - return Index(operand_multidim_index, linear(), operand_shape); - -From 2df6cd3acd71a6dcf459e92c26ac426c90a57be4 Mon Sep 17 00:00:00 2001 -From: Todd Wang <[email protected]> -Date: Wed, 21 Jun 2017 17:51:55 -0700 -Subject: [PATCH 2/3] Another try - ---- - tensorflow/compiler/xla/util.h | 17 ++++++++++++----- - 1 file changed, 12 insertions(+), 5 deletions(-) - -diff --git a/tensorflow/compiler/xla/util.h b/tensorflow/compiler/xla/util.h -index 42d5c1d1550..32aa81d1f42 100644 ---- a/tensorflow/compiler/xla/util.h -+++ b/tensorflow/compiler/xla/util.h -@@ -195,16 +195,23 @@ bool IsPermutation(tensorflow::gtl::ArraySlice<int64> permutation, int64 rank); - // 2. permutation.size() == input.size(). - template <template <typename...> class C, typename T> - std::vector<T> Permute(tensorflow::gtl::ArraySlice<int64> permutation, -- C<T> input_) { -- tensorflow::gtl::ArraySlice<T> input(input_); -- CHECK(IsPermutation(permutation, input.size())); -- std::vector<T> output(input.size()); -+ C<T> input) { -+ tensorflow::gtl::ArraySlice<T> data(input); -+ CHECK(IsPermutation(permutation, data.size())); -+ std::vector<T> output(data.size()); - for (size_t i = 0; i < permutation.size(); ++i) { -- output[permutation[i]] = input[i]; -+ output[permutation[i]] = data[i]; - } - return output; - } - -+// Override of the above that works around compile failures with vectors. -+template <typename T> -+std::vector<T> Permute(tensorflow::gtl::ArraySlice<int64> permutation, -+ const std::vector<T>& input) { -+ return Permute<std::vector, T>(permutation, input); -+} -+ - // Inverts a permutation, i.e., output_permutation[input_permutation[i]] = i. - std::vector<int64> InversePermutation( - tensorflow::gtl::ArraySlice<int64> input_permutation); - -From 03da6113468d6b256a755d0521b9b239eaf8b6a9 Mon Sep 17 00:00:00 2001 -From: Todd Wang <[email protected]> -Date: Wed, 21 Jun 2017 17:54:15 -0700 -Subject: [PATCH 3/3] Update ir_array.cc - ---- - tensorflow/compiler/xla/service/llvm_ir/ir_array.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc b/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc -index b14104be6ad..e401305ae73 100644 ---- a/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc -+++ b/tensorflow/compiler/xla/service/llvm_ir/ir_array.cc -@@ -158,7 +158,7 @@ IrArray::Index IrArray::Index::SourceIndexOfTranspose( - tensorflow::gtl::ArraySlice<int64> dimension_mapping, - llvm::IRBuilder<>* builder) const { - std::vector<llvm::Value*> operand_multidim_index = -- Permute<std::vector, llvm::Value*>(dimension_mapping, multidim()); -+ Permute(dimension_mapping, multidim()); - if (linear() != nullptr && - ShapeUtil::TransposeIsBitcast(operand_shape, shape, dimension_mapping)) { - return Index(operand_multidim_index, linear(), operand_shape); Deleted: 11174.patch =================================================================== --- 11174.patch 2017-08-17 15:56:09 UTC (rev 251719) +++ 11174.patch 2017-08-17 16:30:57 UTC (rev 251720) @@ -1,36 +0,0 @@ -From 0c0005e3eb83b0e0c4903d2ec4223a58ef115e54 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C3=ABl=20Defferrard?= <[email protected]> -Date: Fri, 30 Jun 2017 13:47:39 +0000 -Subject: [PATCH] Only use weakref.finalize from backports in Python < 3.4 - ---- - tensorflow/python/util/tf_should_use.py | 9 +++++++-- - 1 file changed, 7 insertions(+), 2 deletions(-) - -diff --git a/tensorflow/python/util/tf_should_use.py b/tensorflow/python/util/tf_should_use.py -index 05c99856d27..491b78f1dd3 100644 ---- a/tensorflow/python/util/tf_should_use.py -+++ b/tensorflow/python/util/tf_should_use.py -@@ -25,7 +25,12 @@ - - import six # pylint: disable=unused-import - --from backports import weakref # pylint: disable=g-bad-import-order -+# pylint: disable=g-bad-import-order -+try: -+ from weakref import finalize -+except ImportError: -+ from backports.weakref import finalize -+# pylint: enable=g-bad-import-order - - from tensorflow.python.platform import tf_logging - from tensorflow.python.util import tf_decorator -@@ -107,7 +112,7 @@ def __init__(self, true_self): - # garbage collected. Can't add self as the args because the - # loop will break garbage collection. We keep track of - # ourselves via python ids. -- weakref.finalize(self, _deleted, self._tf_ref_id, fatal_error) -+ finalize(self, _deleted, self._tf_ref_id, fatal_error) - - # Not sure why this pylint warning is being used; this is not an - # old class form. Deleted: 11949.patch =================================================================== --- 11949.patch 2017-08-17 15:56:09 UTC (rev 251719) +++ 11949.patch 2017-08-17 16:30:57 UTC (rev 251720) @@ -1,23 +0,0 @@ -From c5d311eaf8cc6471643b5c43810a1feb19662d6c Mon Sep 17 00:00:00 2001 -From: Allen Lavoie <[email protected]> -Date: Tue, 1 Aug 2017 13:37:32 -0700 -Subject: [PATCH] Fix "depsets cannot contain mutable items" error with CUDA - builds in Bazel 0.5.3 - ---- - third_party/gpus/cuda_configure.bzl | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/third_party/gpus/cuda_configure.bzl b/third_party/gpus/cuda_configure.bzl -index 4dd3169d418..b85e565f362 100644 ---- a/third_party/gpus/cuda_configure.bzl -+++ b/third_party/gpus/cuda_configure.bzl -@@ -106,7 +106,7 @@ def _get_cxx_inc_directories_impl(repository_ctx, cc, lang_is_cpp): - else: - inc_dirs = result.stderr[index1 + 1:index2].strip() - -- return [repository_ctx.path(_cxx_inc_convert(p)) -+ return [str(repository_ctx.path(_cxx_inc_convert(p))) - for p in inc_dirs.split("\n")] - - def get_cxx_inc_directories(repository_ctx, cc): Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-08-17 15:56:09 UTC (rev 251719) +++ PKGBUILD 2017-08-17 16:30:57 UTC (rev 251720) @@ -4,32 +4,17 @@ pkgbase=tensorflow pkgname=(tensorflow tensorflow-cuda python-tensorflow python-tensorflow-cuda) -pkgver=1.2.1 -pkgrel=5 +pkgver=1.3.0 +pkgrel=1 pkgdesc="Library for computation using data flow graphs for scalable machine learning" url="https://www.tensorflow.org/" license=('Apache2') arch=('x86_64') makedepends=('git' 'bazel' 'python-numpy' 'gcc5' 'cuda' 'cudnn6' 'python-pip' 'python-wheel' 'python-setuptools') -source=("https://github.com/tensorflow/tensorflow/archive/v${pkgver}.tar.gz" - 10868.patch - 11174.patch - 11949.patch - https://raw.githubusercontent.com/tensorflow/tensorflow/847484e39485dc727dd72a0970d5bfb5c2d5e538/tensorflow/c/generate-pc.sh) -sha512sums=('bed3d2173db41d5d6882dbe2bafac3b6cd541acc2e6bb73c838fbf34160a3fe4cff83e0ee0cf79a8081928701cc9752dc5bea7bf733ffadb7745a974e0467b0f' - '90940827ea6cbc6694b14ea276a37c5f8af027317873d67a8b40802d8d75a81984c283335bf62cc5b5fa63023c9cc9b414a145d3019124127c5f15472bfdfcec' - 'a6c13050a1e5398546e3879a5ce805211b79a5947becb486974e67cedfd1dae87773a21a4614343eca6f956ceda9e5b46e0ac7f259b685a83f412f41d051a6b7' - 'ad301229a4280941a8c7b893a3e8dd8db282dc539154d10f04b85b15f5d8be4c92bc954ac1ac69aed2f1b5e2459f00c0c589d0cffc081adabb28515be3a6b5f1' - '9a1d82df83881c662d088ccd5b21abcb8b46726f2090f64d968d270d99e3b7bbd6b3c9dae6e83479ff724a47238384df95ed67d0d096d97231c793e7f63a1034') +source=("https://github.com/tensorflow/tensorflow/archive/v${pkgver}.tar.gz") +sha512sums=('b74228a13537e4cbcf8781167480a0bccb2c1ecf7bf21a02e35a182e073395f919645205036fd2193d5a186cfa8a869ba32c04fa5bd8f82cbe0ad8e56926398b') prepare() { - patch -Np1 -d tensorflow-${pkgver} < ${srcdir}/10868.patch - patch -Np1 -d tensorflow-${pkgver} < ${srcdir}/11174.patch - patch -Np1 -d tensorflow-${pkgver} < ${srcdir}/11949.patch - - # We'll not need this in >1.2 - cp ${srcdir}/generate-pc.sh tensorflow-${pkgver}/tensorflow/c/generate-pc.sh - cp -r tensorflow-${pkgver} tensorflow-${pkgver}-cuda # These environment variables influence the behavior of the configure call below. export TF_NEED_MKL=0 @@ -42,6 +27,7 @@ export TF_ENABLE_XLA=1 export TF_NEED_VERBS=0 export TF_NEED_OPENCL=0 + export TF_NEED_MPI=0 } build() {
