Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tensorflow
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
pgu
Guru
Guru


Joined: 30 Jul 2009
Posts: 594
Location: Oslo, Norway

PostPosted: Sat Aug 13, 2016 2:49 pm    Post subject: Tensorflow Reply with quote

Are there an ebuild available for Tensorflow? Or is there an ebuild for bazel to build from Tensorflow source? Or do you use docker?
Back to top
View user's profile Send private message
djdkf343
n00b
n00b


Joined: 28 Jul 2016
Posts: 32

PostPosted: Sat Aug 13, 2016 3:36 pm    Post subject: Reply with quote

Hey,
Tensorflow https://github.com/zougloub/gentoo-zougloub-overlay/tree/03da97eaa2df141b571ee0a0ff74b0a3f2cc94c4/sci-libs/tensorflow , https://github.com/camaclean/bw-python-gentoo-prefix-overlay/tree/488b00733af605107f6d6ddcea1532f5f660c641/dev-python/tensorflow
,bazel - http://gpo.zugaina.org/app-misc/bazel ,docker dont try yet.
Back to top
View user's profile Send private message
ffyring
n00b
n00b


Joined: 16 Aug 2005
Posts: 63
Location: Stockholm

PostPosted: Tue Aug 23, 2016 7:46 pm    Post subject: Re: Tensorflow Reply with quote

pgu wrote:
Are there an ebuild available for Tensorflow? Or is there an ebuild for bazel to build from Tensorflow source? Or do you use docker?


I ended up installing both bazel and Tensorflow from source. I did not manage to get tensorflow working with cuda though.
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 203
Location: Lake Macha, Czech republic

PostPosted: Wed Jan 04, 2017 4:13 am    Post subject: Reply with quote

Any update on ebuilds for TensorFlow?
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
Back to top
View user's profile Send private message
archenroot
Apprentice
Apprentice


Joined: 13 Dec 2011
Posts: 203
Location: Lake Macha, Czech republic

PostPosted: Wed Jan 04, 2017 3:35 pm    Post subject: Create up-to-date ebuild for TensorFlow Reply with quote

This link is obsolete:
https://github.com/zougloub/gentoo-zougloub-overlay/tree/03da97eaa2df141b571ee0a0ff74b0a3f2cc94c4/sci-libs/tensorflow

And this one:
https://github.com/camaclean/bw-python-gentoo-prefix-overlay/tree/488b00733af605107f6d6ddcea1532f5f660c641/dev-python/tensorflow
Is related to specific use case as per author response to update:
These ebuilds are not intended for general usage. They are created for use with Gentoo Prefix hosted on Cray Linux Environment and may also (inadvertently) have site-specific configurations only relevant for use on the Blue Waters supercomputer.

I will try to update the first one for 0.11 tensorflow version and 9999. Any help appriciated 8O
_________________
Emperor wants to control outer space Yoda wants to explore inner space that's the fundamental difference between good and bad sides of the Force
Back to top
View user's profile Send private message
jupiter126
n00b
n00b


Joined: 31 Aug 2012
Posts: 5

PostPosted: Sat Apr 22, 2017 10:39 pm    Post subject: got it working Reply with quote

Hello, not sure if this is still any help, couldn't find any info so I had to improvise, not even sure if it was a good idea... but I just got tf running on gentoo amd64 with GPU acceleration (CPU works out of the box, so won't cover it).

Basically, I followed the steps described on https://www.tensorflow.org/install/install_linux#NVIDIARequirements
but got stuck at
$ sudo apt-get install libcupti-dev

My quick research led to no source for libcupti-dev, so what I did was download the deb packages from debian non free (corresponding architecture...), namely:

http://ftp.es.debian.org/debian/pool/non-free/n/nvidia-cuda-toolkit/libcupti8.0_8.0.44-3_amd64.deb
http://ftp.es.debian.org/debian/pool/non-free/n/nvidia-cuda-toolkit/libcupti-dev_8.0.44-3_amd64.deb

extracted the files, and then copied some contents, as:

In libcupti8.0_8.0.44-3_amd64, in the data.tar.xz
cp lib/x86_64-linux-gnu/libcupti.so.8.0.44 /usr/lib64
ln -s /usr/lib64/libcupti.so.8.0.44 /usr/lib64/libcupti.so.8.0

In libcupti-dev_8.0.44-3_amd64, in data.tar.xz
cp include/* /usr/include/

As I understand, these files are as is, distributed by nvidia, and it is the only way I found to get them...
Once that was done, the rest of the install went straight out of the handbook like

pip3 install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.1-cp34-cp34m-linux_x86_64.whl

and tf is working.

Hope it helps :)
Greetings
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1979
Location: Poland

PostPosted: Mon Apr 24, 2017 12:29 pm    Post subject: Reply with quote

libcupti-dev is a part of "nvidia-cuda-toolkit" package, but you have to enable "profiler" USE flag:

Code:
        if use profiler; then
                # hack found in install-linux.pl
                for i in nvvp nsight; do
                        cat > bin/${i} <<- EOF || die
                                #!/usr/bin/env sh
                                LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
                                        UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \
                                        ${ecudadir}/lib${i}/${i} -vm ${EPREFIX}/usr/bin/java
                        EOF
                        chmod a+x bin/${i} || die
                done
        else
                use eclipse || remove+=( libnvvp libnsight )
                remove+=( extras/CUPTI )
        fi

        for i in "${remove[@]}"; do
                ebegin "Cleaning ${i}..."
                rm -rf "${i}" || die
                eend
        done
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum