From:
SPDK <spdk-bounces@lists.01.org> on behalf of Bob Chen <a175818323@gmail.com>
Reply-To: Storage Performance Development Kit <spdk@lists.01.org>
Date: Monday, May 21, 2018 at 8:23 PM
To: Storage Performance Development Kit <spdk@lists.01.org>
Subject: Re: [SPDK] Compiling error on different types of Intel CPU
2018-05-21 23:25 GMT+08:00 Harris, James R <james.r.harris@intel.com>:
Hi Bob,
DPDK builds by default with –march=native. This means when the app is compiled on the E5v4 (Broadwell Xeon) it may use instructions available on the E5v4 which are not available on the E5v2 (Ivy Bridge Xeon).
Could you try “make clean” followed by “make DPDK_CFLAGS=-march=ivybridge”?
Alternatively, you can modify dpdk/config/defconfig_spdk-linuxapp-gcc – change CONFIG_RTE_MACHINE to “ivybridge”. Then “make clean” and rebuild.
I assume it could work, but I still need to prepare two packages for each type of servers.
Is there any possibility that I could build a compatible software and let it run on both of them?
And who knows what would happen when things come to the next Skylake platform...
The “ivybridge” packages would work on both the E5v2 (Ivy Bridge) and E5v4 (Haswell) systems, as well as Skylake and future microarchitectures.