1 |
On Sat, Oct 16, 2021 at 11:06 AM gevisz <gevisz@×××××.com> wrote: |
2 |
> |
3 |
> сб, 16 окт. 2021 г. в 20:40, Mark Knecht <markknecht@×××××.com>: |
4 |
> > |
5 |
> > On Sat, Oct 16, 2021 at 9:50 AM gevisz <gevisz@×××××.com> wrote: |
6 |
> > > |
7 |
> > > To make things worse, I've got an "Illegal instruction (core dumped)" |
8 |
> > > error after installing and trying to run tensorflow from Ubuntu 20.04 |
9 |
> > > which is installed on the same computer. |
10 |
> > > |
11 |
> > |
12 |
> > What processor by chance are you using. Probably a year back |
13 |
> > Google started requiring processors with AVX2 and FMA instructions. |
14 |
> > |
15 |
> > I can no longer run it on my Intel i7 980 Extreme unless I build from |
16 |
> > source which is just too painful. It's the main reason I'm starting |
17 |
> > to finally plan a new machine purchase. |
18 |
> > |
19 |
> > cat /proc/cpuinfo | grep flags |
20 |
> |
21 |
> I have googled and also think that the above error on Ubuntu 20.04 is |
22 |
> due to the old processor. |
23 |
> I have an AMD Phenom II X4 processor on that computer. The main |
24 |
> problem, however, is that |
25 |
> I get an error when compiling tensorflow in Gentoo. |
26 |
> |
27 |
> The CPU flags are the following: fpu vme de pse tsc msr pae mce cx8 |
28 |
> apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht |
29 |
> syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow |
30 |
> constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid pni monitor |
31 |
> cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a |
32 |
> misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate vmmcall npt |
33 |
> lbrv svm_lock nrip_save |
34 |
> |
35 |
|
36 |
So yes, in my experience your Ubuntu experiment using precompiled |
37 |
tensorflow is probably due to failure due to missing instructions in that |
38 |
processor. |
39 |
|
40 |
My experience compiling tensorflow was that it's fit and miss with lots |
41 |
of bazel problems. However, that's mostly from 2 years ago. (I bought |
42 |
my current house 2 years ago and the work I did was at the previous |
43 |
house.) There were a LOT of issues getting it compiled, and for |
44 |
clarity I was compiling on Ubuntu not Gentoo. That said my best results |
45 |
were using build instructions where you were insider of a Docker |
46 |
instance but you had to match things like python revisions in the |
47 |
Docker image with the one you were going to use in your environment |
48 |
outside of Docker. Generally this meant running TF in a specific |
49 |
python virtual environment and not just in your login. |
50 |
|
51 |
I wish you the best of luck. In the end I was able to buy a reasonably |
52 |
priced product that used TF but had the part I couldn't run in a |
53 |
library I could just remove. I lose certain features in the product |
54 |
but can reinsert that library when I get a new machine. |
55 |
|
56 |
Best of luck, |
57 |
Mark |