Package Details: tensorflow-git 1.12.1+54837+g03796cf1dda-1

Git Clone URL: https://aur.archlinux.org/tensorflow-git.git (read-only, click to copy)
Package Base: tensorflow-git
Description: Library for computation using data flow graphs for scalable machine learning (with CPU optimizations)
Upstream URL: https://tensorflow.org/
Keywords: artificial_intelligence google machine_learning neural_network
Licenses: Apache
Conflicts: tensorflow
Provides: tensorflow
Submitter: swiftscythe
Maintainer: swiftscythe
Last Packager: swiftscythe
Votes: 2
Popularity: 0.000000
First Submitted: 2017-05-27 18:50
Last Updated: 2021-04-14 00:37

Required by (16)

Sources (1)

Latest Comments

Kamilcuk commented on 2021-04-07 10:53

Umm, the prepare() function is kind-of invalid. You can't set environment variables from prepare(), I mean, you can set it, but you can't expect them to be visible in build() stage. The build fails when prepare() and build() are run in separate stages - like first makepkg -o and then followed by separate makepkg -e - makepkg -e will cause configure.py ask for some settings, because prepare() was not run. The build most notably fails to build properly when using yay AUR helper.

Consider applying like the following trivial patch to just move variable settings to be inside build():

--- i/PKGBUILD
+++ w/PKGBUILD
@@ -42,7 +42,9 @@ prepare() {

   [ -d ${srcdir}/tensorflow-cuda ] && rm -rf ${srcdir}/tensorflow-cuda
     cp -r ${srcdir}/tensorflow ${srcdir}/tensorflow-cuda
+}

+_set_build_env() {
   # make sure the proxy variables are in all caps, otherwise bazel ignores them
   export HTTP_PROXY=`echo $http_proxy | sed -e 's/\/$//'`
   export HTTPS_PROXY=`echo $https_proxy | sed -e 's/\/$//'`
@@ -96,6 +98,7 @@ prepare() {
 }

 build() {
+  _set_build_env
   cd ${srcdir}/tensorflow
   export CC_OPT_FLAGS="-march=native -O3"
   export TF_NEED_CUDA=0

Thanks!

ruestique commented on 2020-05-21 21:54

have to make symlink in /usr/bin

sudo ln -s bazel bazel-3.0.0-linux-x86_64

ruestique commented on 2020-04-03 11:41

How to compile it with modern CPU's instructions support ?

evilarceus commented on 2020-01-21 08:37

Had to downgrade from Bazel 2.0.0 to 1.2.1. Otherwise, it fails with a Python "subprocess" error. This is not caused by the PKGBUILD, however.

riyies commented on 2018-05-31 21:22

Fails when using Bazel 0.13 java.lang.RuntimeException: Unrecoverable error while evaluating node 'PACKAGE:tensorflow/core/kernels'

Worked with Bazel 0.12. Refer to https://github.com/tensorflow/tensorflow/issues/19015

progwolff commented on 2017-08-29 14:19

The build fails at boringssl.

Adding --copt=-O to the bazel options fixes the build.
See also: https://stackoverflow.com/questions/40373686/freeze-graph-py-throws-an-error-during-build/40374431#40374431

jmbarrios commented on 2017-08-15 17:23

I can confirm that cudnn is necessary. There an issue on tensorflow repository asking for support cudnn 7 and cuda 9 (https://github.com/tensorflow/tensorflow/issues/12052).

petronny commented on 2017-08-14 08:27

I think cudnn should be cudnn6 now?

piratejon commented on 2017-06-30 04:00

python-tensorflow-cuda-git seems to depend on libglvnd which conflicts with my video driver. Is that necessary? tensorflow-cuda-git does not require it.