6. Checking hardware

There are versions of the TensorFlow wheel files compiled for Intel and AMD processors to provide the best performance on those hosts. So, you need to confirm which processor is used in the Graphcloud server before you can install the wheel file. You can use the lscpu command and get an output similar to Listing 6.1 for an AMD processor and Listing 6.2 for an Intel processor.

Listing 6.1 Example of lscpu output showing AMD processor
 Architecture:        x86_64
 CPU op-mode(s):      32-bit, 64-bit
 Byte Order:          Little Endian
 CPU(s):              240
 On-line CPU(s) list: 0-239
 Thread(s) per core:  1
 Core(s) per socket:  120
 Socket(s):           2
 NUMA node(s):        2
 Vendor ID:           AuthenticAMD
 CPU family:          23
 Model:               49
 Model name:          AMD EPYC 7742 64-Core Processor
 Stepping:            0
 CPU MHz:             2245.780
 BogoMIPS:            4491.56
 Hypervisor vendor:   KVM
 Virtualization type: full
 L1d cache:           64K
 L1i cache:           64K
 L2 cache:            512K
 L3 cache:            16384K
 NUMA node0 CPU(s):   0-119
 NUMA node1 CPU(s):   120-239
Listing 6.2 Example of lscpu output showing Intel processor
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              96
On-line CPU(s) list: 0-95
Thread(s) per core:  2
Core(s) per socket:  24
Socket(s):           2
NUMA node(s):        2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz
Stepping:            4
CPU MHz:             1200.032
BogoMIPS:            5400.00
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            33792K
NUMA node0 CPU(s):   0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94
NUMA node1 CPU(s):   1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95