From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wh10.alp1.flow.ch (wh10.alp1.flow.ch [185.119.84.194]) by dpdk.org (Postfix) with ESMTP id 5137A2B9C for ; Thu, 21 Feb 2019 17:32:21 +0100 (CET) Received: from [37.139.80.50] (port=49905 helo=nw) by wh10.alp1.flow.ch with esmtpsa (TLSv1.1:ECDHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1gwrGl-000RGS-0O; Thu, 21 Feb 2019 17:32:19 +0100 Date: Thu, 21 Feb 2019 19:32:17 +0300 From: Alex Kiselev Message-ID: <53216496.20190221193217@therouter.net> To: "Van Haaren, Harry" , "users@dpdk.org" In-Reply-To: References: <1681745409.20190221174703@therouter.net> <872839432.20190221183254@therouter.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh10.alp1.flow.ch X-AntiAbuse: Original Domain - dpdk.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - therouter.net X-Get-Message-Sender-Via: wh10.alp1.flow.ch: authenticated_id: alex@therouter.net X-Authenticated-Sender: wh10.alp1.flow.ch: alex@therouter.net X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [dpdk-users] build dpdk for a cpu that doesn't support avx X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2019 16:32:21 -0000 >> -----Original Message----- >> From: users [mailto:users-bounces@dpdk.org] On Behalf Of Alex Kiselev >> Sent: Thursday, February 21, 2019 3:33 PM >> To: users@dpdk.org >> Subject: Re: [dpdk-users] build dpdk for a cpu that doesn't support avx >> It looks like I've found a way: >> I edited $RTE_SDK/config/defconfig_x86_64-native-linuxapp-gcc >> CONFIG_RTE_MACHINE="x86-64" >> and then I used >> make EXTRA_CFLAGS="-march=x86-64 -mpopcnt -mmmx -msse -msse2 -msse3 -mssse3 >> -msse4.1 -msse4.2 -mfpmath=sse -mpopcnt" >> The application has started successfully. >> But I am wondering, maybe I've missed something and there are potential bugs >> in this way? >> > Hi. >> > Is it possible to build DPDK application on a machine that do have AVX >> support >> > for use at another machine that doesn't have AVX feature? >> > Thanks. > Using -march to manually tune should work fine, just be aware of > mistakes made; this is an error prone method.. > As per the GCC docs, you can target specific CPU families, and the optimal flags will be selected: > https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html > Example: -march=goldmont-plus > With make, EXTRA_CFLAGS="-march=NAME-HERE" should work > With Meson, cd && meson configure -Dc_args="-march=NAME-HERE" > I guess there's a prettier method for meson, but the above works here :) > Hope that helps, -Harry Yes, it helped. Thank you. I've switched to using EXTRA_CFLAGS="-march=westmere" -- Alex