public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: gevisz <gevisz@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: tensorflow-2.5.0-r1 compilation failed
Date: Fri, 11 Mar 2022 19:47:27 +0200	[thread overview]
Message-ID: <CA+t6X7d2iJ6NUX1xnu1b17rw=OEnM-UsnSYeMb385wpS5dAupw@mail.gmail.com> (raw)
In-Reply-To: <CAK2H+efNwZz0PZ0Z=2uM7bKdsdveruoEff4tuAcyyeUSYd0XWw@mail.gmail.com>

пн, 10 янв. 2022 г. в 18:16, Mark Knecht <markknecht@gmail.com>:
>
> <SNIP>
> >
> > Thank you for your reply, Mark.
> >
> > Unfortunately, you missed my previous message in this thread
> > where I wrote that I do have Ubuntu 20.04 on the same computer.
> > However, tensorflow fails to run on it because it is not compiled
> > to be inconsistent with my videocard. So, Gentoo is my only option
> > for this hardware.
> >
> <SNIP>
>
> My apologies. This thread has gone on for a while and I had to review
> to get caught up.
>
> OK, so assuming I understand correctly (please correct me if I do
> not) then you are talking about ONE computer that uses an AMD
> Phenom II  X4 processor. This computer dual boots, or is a Gentoo
> machine with an Ubuntu VM.

It is a dual boot. (Sorry for the late reply.)

> In an earlier response to this thread you showed the flags
> supported by this processor which did not include
> the AVX, AVX2 or the FMA3/FMA4 flags. It is my
> understanding that this processor cannot run the
> current versions of tensorflow whether you compile
> it yourself or not, at least in the non-GPU version.

My hardware cannot run tensorflow precompiled by Ubuntu.
However, some versions of tensorflow successfully compile
and run in Gentoo:
- all versions of tensorflow-2.5 fail to compile in Gentoo;
- tensorflow-2.7.0 successfully compiled on 21-11-2021;
- on 30-12-2021 recompilation of the same tensorflow-2.7.0
  failed because of some changed dependencies;
- I have not yet tried to compile tensorflow-2.8.0.

Actually, I gave up trying to compile it and deleted it from my system.
Moreover, I am not going to compile it in the near future as I am now
in the war zone.

> WRT to your video card, tensorflow does not require the use
> of a GPU. There are two versions, tensorflow-cpu and
> tensorflow-gpu. If you were to build the -cpu version then it
> is my understanding it would run an a headless machine,
> presuming the processor has AVX/AVX2/FMA hardware
> support.
>
> If the processor DOES have AVX/FMA support but you were having
> problems emerging TF in Gentoo then a virtual machine running
> Ubuntu might have helped you as you could use a precompiled
> apt or snap package. However I don't think anything gets you
> past not having AVX/FMA hardware support.
>
> I am in the same situation. My big machine is an Intel i7 980
> Extreme. I used to be able to run TF but have not been able
> to since Google raised the CPU requirements.
>
> If I am not understanding your hardware setup, or you think
> there is a path around the AVX/FMA hardware problem
> please let me know and I'll explore it more deeply with you.

In addition to the old CPU, I have quite an old video card,
namely, ATI R4770. However, I still believe that it is possible
to compile tensorflow so that it could run on my hardware.
At least, I did it for tensorflow-2.7.0 on 21-11-2021.


  reply	other threads:[~2022-03-11 17:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-16 15:51 [gentoo-user] tensorflow-2.5.0-r1 compilation failed gevisz
2021-10-16 16:48 ` [gentoo-user] " gevisz
2021-10-16 17:39   ` Mark Knecht
2021-10-16 18:05     ` gevisz
2021-10-16 18:27       ` Mark Knecht
2021-10-17  6:32         ` gevisz
2021-10-20 13:43           ` Mark Knecht
2021-10-20 20:28             ` gevisz
2021-11-21  9:15 ` gevisz
2021-11-21 15:12   ` Mark Knecht
2022-01-09 10:57     ` gevisz
2022-01-09 14:51       ` Mark Knecht
2022-01-09 23:29         ` gevisz
2022-01-09 23:30           ` gevisz
2022-01-10 13:50           ` Wols Lists
2022-01-10 16:16           ` Mark Knecht
2022-03-11 17:47             ` gevisz [this message]
2022-03-11 18:49               ` Mark Knecht
2022-03-11 20:47                 ` gevisz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+t6X7d2iJ6NUX1xnu1b17rw=OEnM-UsnSYeMb385wpS5dAupw@mail.gmail.com' \
    --to=gevisz@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox