Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested Build Params For Older Gen Intel CPU #58944

Closed
mexicantexan opened this issue Dec 19, 2022 · 4 comments
Closed

Suggested Build Params For Older Gen Intel CPU #58944

mexicantexan opened this issue Dec 19, 2022 · 4 comments
Assignees
Labels
comp:gpu GPU related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues

Comments

@mexicantexan
Copy link

mexicantexan commented Dec 19, 2022

Click to expand!

Issue Type

Support

Source

source

Tensorflow Version

2.12

Custom Code

Yes

OS Platform and Distribution

Linux Ubuntu 20.04

Mobile device

No response

Python version

3.9

Bazel version

5.3

GCC/Compiler version

No response

CUDA/cuDNN version

n/a

GPU model and memory

n/a

Current Behaviour?

Just wondering what the suggested build parameters would be for an Intel Xeon E5-4650V2 with no GPU? Here are the specs when running lscpu:


CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   40 bits physical, 48 bits virtual
CPU(s):                          16
On-line CPU(s) list:             0-15
Thread(s) per core:              1
Core(s) per socket:              8
Socket(s):                       2
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      15
Model:                           6
Model name:                      Common KVM processor
Stepping:                        1
CPU MHz:                         2493.988
BogoMIPS:                        4987.97
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       512 KiB
L1i cache:                       512 KiB
L2 cache:                        64 MiB
L3 cache:                        32 MiB
NUMA node0 CPU(s):               0-15
Vulnerability Itlb multihit:     KVM: Vulnerable
Vulnerability L1tf:              Mitigation; PTE Inversion
Vulnerability Mds:               Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Mmio stale data:   Unknown: No mitigations
Vulnerability Retbleed:          Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl xtopology cpuid tsc_known_freq pni cx16 x2apic hypervisor lahf_lm cpuid_fault
                                  pti

I would use the default pip install tensorflow, but I get the error that our CPU doesn't support sse4.1 and a bunch of other errors that are cause our scripts to fail.

Right now I've successfully built the whl file once, but I'm not sure if I used the right flags.



### Standalone code to reproduce the issue

```shell
`pip install tensorflow` results in errors stating that our CPU doesn't support sse4.2, sse4.1, etc.

Relevant log output

No response

@google-ml-butler google-ml-butler bot added the type:support Support issues label Dec 19, 2022
@mohantym mohantym added comp:gpu GPU related issues type:build/install Build and install issues subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues and removed type:support Support issues labels Dec 20, 2022
@mohantym
Copy link
Contributor

Hi @mexicantexan !
You can use build from source document to make a custom build according to your hardware architecture.

You need to link the cuda and other required tool chains(android/ios) in configure.py process if you are trying to configure for GPU support.

Attached relevant thread for reference.

"-mavx -msse4.1 -msse4.2"

Thank you!

@mohantym mohantym added the stat:awaiting response Status - Awaiting response from author label Dec 21, 2022
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler google-ml-butler bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Dec 28, 2022
@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:gpu GPU related issues stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype: ubuntu/linux Ubuntu/Linux Build/Installation Issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

2 participants