1 |
commit: 05fb7f5eb4908941e81559aacac3c6797263c43b |
2 |
Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Fri Apr 6 23:22:14 2018 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Fri Apr 6 23:22:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=05fb7f5e |
7 |
|
8 |
sci-libs/tensorflow: version bump |
9 |
|
10 |
The ebuild does not compile for me still, it needs more work. |
11 |
|
12 |
Credits: Rok Kralj |
13 |
Closes: https://github.com/gentoo/sci/issues/857 |
14 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
15 |
|
16 |
sci-libs/tensorflow/tensorflow-1.5.0.ebuild | 19 +++++++++++-- |
17 |
sci-libs/tensorflow/tensorflow-1.7.0.ebuild | 43 +++++++++++++++++++++++++++++ |
18 |
2 files changed, 60 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/sci-libs/tensorflow/tensorflow-1.5.0.ebuild b/sci-libs/tensorflow/tensorflow-1.5.0.ebuild |
21 |
index b2e2e596a..0dae0c1d0 100644 |
22 |
--- a/sci-libs/tensorflow/tensorflow-1.5.0.ebuild |
23 |
+++ b/sci-libs/tensorflow/tensorflow-1.5.0.ebuild |
24 |
@@ -17,12 +17,27 @@ SLOT="0" |
25 |
KEYWORDS="" |
26 |
IUSE="cuda mpi" |
27 |
|
28 |
+# TensorFlow 1.7 may be the last time we support Cuda versions below 8.0. |
29 |
+# Starting with TensorFlow 1.8 release, 8.0 will be the minimum supported |
30 |
+# version. |
31 |
+# TensorFlow 1.7 may be the last time we support cuDNN versions below 6.0. |
32 |
+# Starting with TensorFlow 1.8 release, 6.0 will be the minimum supported |
33 |
+# version. |
34 |
DEPEND="dev-util/bazel |
35 |
dev-python/wheel |
36 |
dev-python/numpy |
37 |
dev-libs/protobuf-c |
38 |
- cuda? ( x11-drivers/nvidia-drivers dev-util/nvidia-cuda-toolkit ) |
39 |
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-7.0[profiler] >=dev-libs/cudnn-3 ) |
40 |
mpi? ( virtual/mpi )" |
41 |
RDEPEND="${DEPEND}" |
42 |
|
43 |
-# TODO: seems it also support some MPI implementation |
44 |
+# TODO: seems it also supports some MPI implementation |
45 |
+ |
46 |
+src_configure(){ |
47 |
+ # there is no setup.py but there is configure |
48 |
+ # https://www.tensorflow.org/install/install_sources |
49 |
+ # https://www.tensorflow.org/install/install_linux#InstallingNativePip |
50 |
+ # |
51 |
+ # usage: configure.py [-h] [--workspace WORKSPACE] |
52 |
+ ./configure || die |
53 |
+} |
54 |
|
55 |
diff --git a/sci-libs/tensorflow/tensorflow-1.7.0.ebuild b/sci-libs/tensorflow/tensorflow-1.7.0.ebuild |
56 |
new file mode 100644 |
57 |
index 000000000..0dae0c1d0 |
58 |
--- /dev/null |
59 |
+++ b/sci-libs/tensorflow/tensorflow-1.7.0.ebuild |
60 |
@@ -0,0 +1,43 @@ |
61 |
+# Copyright 1999-2018 Gentoo Foundation |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+ |
64 |
+EAPI=6 |
65 |
+ |
66 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5,6} ) |
67 |
+ |
68 |
+inherit distutils-r1 eutils |
69 |
+ |
70 |
+DESCRIPTION="Library for numerical computation using data flow graphs" |
71 |
+HOMEPAGE="https://www.tensorflow.org |
72 |
+ https://github.com/tensorflow/tensorflow" |
73 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
74 |
+ |
75 |
+LICENSE="Apache-2.0" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="" |
78 |
+IUSE="cuda mpi" |
79 |
+ |
80 |
+# TensorFlow 1.7 may be the last time we support Cuda versions below 8.0. |
81 |
+# Starting with TensorFlow 1.8 release, 8.0 will be the minimum supported |
82 |
+# version. |
83 |
+# TensorFlow 1.7 may be the last time we support cuDNN versions below 6.0. |
84 |
+# Starting with TensorFlow 1.8 release, 6.0 will be the minimum supported |
85 |
+# version. |
86 |
+DEPEND="dev-util/bazel |
87 |
+ dev-python/wheel |
88 |
+ dev-python/numpy |
89 |
+ dev-libs/protobuf-c |
90 |
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-7.0[profiler] >=dev-libs/cudnn-3 ) |
91 |
+ mpi? ( virtual/mpi )" |
92 |
+RDEPEND="${DEPEND}" |
93 |
+ |
94 |
+# TODO: seems it also supports some MPI implementation |
95 |
+ |
96 |
+src_configure(){ |
97 |
+ # there is no setup.py but there is configure |
98 |
+ # https://www.tensorflow.org/install/install_sources |
99 |
+ # https://www.tensorflow.org/install/install_linux#InstallingNativePip |
100 |
+ # |
101 |
+ # usage: configure.py [-h] [--workspace WORKSPACE] |
102 |
+ ./configure || die |
103 |
+} |