1 |
commit: a99862388c0fcc72b52f87421630b8383061c317 |
2 |
Author: Jian Lin <jlin.gentoo <AT> outlook <DOT> com> |
3 |
AuthorDate: Mon May 10 07:30:13 2021 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 22:04:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9986238 |
7 |
|
8 |
sci-libs/tensorflow: check gcc version correctly |
9 |
|
10 |
Closes: https://bugs.gentoo.org/789270 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/20750 |
12 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
13 |
Signed-off-by: Jian Lin <jlin.gentoo <AT> outlook.com> |
14 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
15 |
|
16 |
sci-libs/tensorflow/tensorflow-2.4.0.ebuild | 2 +- |
17 |
sci-libs/tensorflow/tensorflow-2.5.0.ebuild | 2 +- |
18 |
2 files changed, 2 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/sci-libs/tensorflow/tensorflow-2.4.0.ebuild b/sci-libs/tensorflow/tensorflow-2.4.0.ebuild |
21 |
index f9f852726c0..7e6fd9bc4b8 100644 |
22 |
--- a/sci-libs/tensorflow/tensorflow-2.4.0.ebuild |
23 |
+++ b/sci-libs/tensorflow/tensorflow-2.4.0.ebuild |
24 |
@@ -233,7 +233,7 @@ src_configure() { |
25 |
einfo "Setting CUDA version: $TF_CUDA_VERSION" |
26 |
einfo "Setting CUDNN version: $TF_CUDNN_VERSION" |
27 |
|
28 |
- if [[ *$(gcc-version)* != $(cuda-config -s) ]]; then |
29 |
+ if [[ $(cuda-config -s) != *$(gcc-version)* ]]; then |
30 |
ewarn "TensorFlow is being built with Nvidia CUDA support. Your default compiler" |
31 |
ewarn "version is not supported by the currently installed CUDA. TensorFlow will" |
32 |
ewarn "instead be compiled using: ${GCC_HOST_COMPILER_PATH}." |
33 |
|
34 |
diff --git a/sci-libs/tensorflow/tensorflow-2.5.0.ebuild b/sci-libs/tensorflow/tensorflow-2.5.0.ebuild |
35 |
index f6bc650064f..3e640b929a9 100644 |
36 |
--- a/sci-libs/tensorflow/tensorflow-2.5.0.ebuild |
37 |
+++ b/sci-libs/tensorflow/tensorflow-2.5.0.ebuild |
38 |
@@ -238,7 +238,7 @@ src_configure() { |
39 |
einfo "Setting CUDA version: $TF_CUDA_VERSION" |
40 |
einfo "Setting CUDNN version: $TF_CUDNN_VERSION" |
41 |
|
42 |
- if [[ *$(gcc-version)* != $(cuda-config -s) ]]; then |
43 |
+ if [[ $(cuda-config -s) != *$(gcc-version)* ]]; then |
44 |
ewarn "TensorFlow is being built with Nvidia CUDA support. Your default compiler" |
45 |
ewarn "version is not supported by the currently installed CUDA. TensorFlow will" |
46 |
ewarn "instead be compiled using: ${GCC_HOST_COMPILER_PATH}." |