View previous topic :: View next topic |
Author |
Message |
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Sat Aug 13, 2016 2:49 pm Post subject: Tensorflow |
|
|
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 |
|
|
djdkf343 n00b
Joined: 28 Jul 2016 Posts: 32
|
|
Back to top |
|
|
ffyring n00b
Joined: 16 Aug 2005 Posts: 63 Location: Stockholm
|
Posted: Tue Aug 23, 2016 7:46 pm Post subject: Re: Tensorflow |
|
|
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 |
|
|
archenroot Apprentice
Joined: 13 Dec 2011 Posts: 218 Location: Lake Macha, Czech republic
|
Posted: Wed Jan 04, 2017 4:13 am Post subject: |
|
|
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 |
|
|
archenroot Apprentice
Joined: 13 Dec 2011 Posts: 218 Location: Lake Macha, Czech republic
|
|
Back to top |
|
|
jupiter126 n00b
Joined: 31 Aug 2012 Posts: 5
|
Posted: Sat Apr 22, 2017 10:39 pm Post subject: got it working |
|
|
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 |
|
|
mbar Veteran
Joined: 19 Jan 2005 Posts: 1990 Location: Poland
|
Posted: Mon Apr 24, 2017 12:29 pm Post subject: |
|
|
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 |
|
|
soparla n00b
Joined: 21 Aug 2018 Posts: 72 Location: Florida
|
Posted: Sun Dec 06, 2020 6:29 am Post subject: |
|
|
Code: |
# emerge --sync
# emerge -av --autounmask sci-libs/tensorflow
# etc-update
# emerge -av sci-libs/tensorflow
|
|
|
Back to top |
|
|
|