From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28E2DA0A02; Fri, 21 May 2021 11:52:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D2FB40143; Fri, 21 May 2021 11:52:41 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id E705740041 for ; Fri, 21 May 2021 11:52:39 +0200 (CEST) IronPort-SDR: TYdlpme9Tk8FgndpIO/6dxJw5/1lY6NmQCC5dJ7F6aWR+Es9Cos9ApMJ13SVWee5u1+9tsXcUH M3Jbo+ZE0meA== X-IronPort-AV: E=McAfee;i="6200,9189,9990"; a="188576885" X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="188576885" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2021 02:52:37 -0700 IronPort-SDR: tluQp/Cj5gcA1I6gZvaZRUbo3BsOKRFxME96HQLqiHLAv7rIHHCcEuPDHbki8k3iR9T54Ac8PX o1YQxzl6/EMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,313,1613462400"; d="scan'208";a="462436722" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga004.fm.intel.com with ESMTP; 21 May 2021 02:52:37 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Fri, 21 May 2021 02:52:37 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Fri, 21 May 2021 02:52:36 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Fri, 21 May 2021 02:52:36 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.173) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Fri, 21 May 2021 02:52:33 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BmxUkNTZcE+caMcZ6WNrI1cVOverpocgOTqAlnHQm+YVPixcpO8tvipBdCy3othiwtIy1HlffdydwCxnQNOzOdekyfsQs1zFBoqGMxvjRiOOaXmPENXWwHrTEMfTnzGr3XaJ4xyFEKkaJayYExhHoK3mR/ti1mHdOuHbsyc+TS8uXwBInxfSfLrCH1Mv+YzMnYI2NvYfJffNyJMV1qhvPmtwDpIw2LdcAP8hFpyplUMlqzeMBCaTJUX+26flIzjXqIboRtFCIDl3TB/W4b4CoVoeP/nsjs1VxcDFPNmtuKwF3d1FEHkIH2rt3W0mnti+4GjSzFGbyyaj203jcLRxOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qWeqtufmwihmGCLcGSAUKZqBzj+EVxN8op2jdBYugUo=; b=RcDS7E8Pews+MVjoVaKRpRJDZJfVqnhVDX0s3Xyl+Gu9JXpDh75xmnKVhdyVRrQYQmXds0ourr/Z21JbRU43RdAYkdyjPGw15lZIKbKlPsqvvFzoh8HBEZSZfxwm+jCpLmaw+8RWI9c//8Y69sg1JwIMqM80umicCwHkkZLRPOtdME3iJaZ6tMpxDoPpVmO44ES32rmRVInWRNSyxP8bpgOAUAmtl6cWni7Xg54sUfnoIIMUnNawp56C1RzGgi+pUFa6w3+0WWWlb3iy1tHQ03TDGYrNd16swyuMFVbQu/OojY22k4Pc3RZ3tjG6RChWXmWNEGgRvDNPInHDZFuAsw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qWeqtufmwihmGCLcGSAUKZqBzj+EVxN8op2jdBYugUo=; b=pvsVfsrvRrYVeNT1uvX7QL19reSBBiA1dno9rzCVSP9Q0idtRv4N2OA6M6/CX8cztzJBRE0jKiTm2uW4HqNhWByrzR11Y+gkr7geM2WLdrdp6bi4OvY/6mPQ67e0MBFYC4MN5jS6n38XtG3LHVoomrNGDzXhw63eMAcFLa9Boqs= Received: from DM6PR11MB4491.namprd11.prod.outlook.com (2603:10b6:5:204::19) by DM8PR11MB5685.namprd11.prod.outlook.com (2603:10b6:8:20::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Fri, 21 May 2021 09:52:30 +0000 Received: from DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::15ed:b4f4:540e:ea0c]) by DM6PR11MB4491.namprd11.prod.outlook.com ([fe80::15ed:b4f4:540e:ea0c%7]) with mapi id 15.20.4150.025; Fri, 21 May 2021 09:52:30 +0000 From: "Ananyev, Konstantin" To: Liang Ma , "Richardson, Bruce" CC: Thomas Monjalon , "dev@dpdk.org" Thread-Topic: Question Of binutils-avx512-check Thread-Index: AQHXThodc6ut1+1wTkWJ7qxGLcLpYqrtoe6AgAAMYOA= Date: Fri, 21 May 2021 09:52:30 +0000 Message-ID: References: <20210520212203.GA26@DESKTOP-POQV63C.localdomain> <28959083.qiruW6CpZX@thomas> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: liangbit.com; dkim=none (message not signed) header.d=none;liangbit.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [109.255.184.192] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ee510617-ac2c-4963-7e95-08d91c3e263b x-ms-traffictypediagnostic: DM8PR11MB5685: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GAWzzGOTA03UKSS9XvYUiTRhejwUrTdtbUGluGnYSxfhCQKqlvyHsrD+I4CsgfXV30wXqRqEjWzP/Vr3CZnXUURfL0oc1fDe1B65vvlEPa1TMDdcJ7GKV+wK+KmAzbYjhUL0cCfrzqiNsyJwokhw6ieZBt9J6Azt0q4AEOfKg1PFl9wQtrjW3VmaK04c6xGgtpqRN00wzvhVNwXYnQOyr5AuAtoxH2rTbJCNsk8dxlYOjJp9FlXmt4Qt6DAEQcs1guou1fjTu31efZw6J4uyD0/ajKwmXt4ISaczHshKYOB6HycHr2HmIxDN6GZB4LWvPm3lzhu1bXVforM53p7UAJySC2EFsJfJgA66p3qWDDNHBo1o0v0hbyuSNXb+yX5AIOn9foyRihRDrQ4BxcNaom/2g2yOYj257ttMrBic1bR/hjPR3YKSR96ivuJkG/uGJw0hhOooIVkO2D9XYlPWTb57eaXiMy4D4W4MnQG7uLXOpjpAAD3vGfCyeqWxLDo1SOqzAlRp4JGZPRHKY1pfOT+k7JjsfQfzeKjwtvmOxnoO29Xe5rh1w9Zfc3JI+3hrGRY6EIlnVRKb07n1bKJ60+XiwlNwxDGwemgB5t8UUFk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB4491.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(376002)(39860400002)(366004)(396003)(346002)(136003)(5660300002)(8936002)(2906002)(186003)(54906003)(52536014)(33656002)(6506007)(26005)(8676002)(316002)(478600001)(110136005)(7696005)(9686003)(55016002)(38100700002)(4326008)(122000001)(66476007)(83380400001)(6636002)(66446008)(71200400001)(55236004)(86362001)(76116006)(66556008)(66946007)(64756008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?ZnNAbZAZLP6eKnOnj3KHpij/sldtsMaFgwhbBIcxo37x5AlkDtx+llUdgcMf?= =?us-ascii?Q?6iZVWr2Xt10ZfUuEaDWYGOCe2Phmj0v8t8PbyKOKhyqNIcM20pLfThPR7IbE?= =?us-ascii?Q?q8mCpT1PtBEMwMRZMxWbYb/kXVKU99PLiQGmfOmPwMWmVg8MBTguzGy9c/2q?= =?us-ascii?Q?aTKkoofjxyI5jnSpmiZZFHRJeahNe7FnC+Hcjwkd0hOkplMgPWnLYZxC8MhL?= =?us-ascii?Q?6x6cloR4FkK3+PNuBPQcOkwiyje0rzXb5VEtmO1XovP2ukoAM6/9TwAJ5p+T?= =?us-ascii?Q?TOZck9LzwMdFkSOUXOofOGoP08oIQTUc13689K6rXFpmVSeUQXVrAYlEVlMC?= =?us-ascii?Q?u9xHmFOfGXfnED1H3193xPsUuU4hYfJKfxvrJNnYYrSJcno5pTxkAVTHt+IS?= =?us-ascii?Q?LKmRl1qAOzkw9HqyTn0sDVHhWl/QZ2rbbgs8cJ0rzuxj9YhMHenSMMLXyiO+?= =?us-ascii?Q?KCFUIx4+Vsi4UjprpU+coYTIxbwKKvnlHpxKjT0EcY9apeodJc4tQjYsYwHX?= =?us-ascii?Q?Q0jotHBGSKOUN/NrGC3yFMLROQztq8ezzzDTiWWR9YbOWApuos5dqwf5JiuW?= =?us-ascii?Q?d33VDUn7552GF+KMf8GlNvWgip2EtD6jRzNI6NGN1ZUVfPs1GTD7WR5Dz/bB?= =?us-ascii?Q?D273hUH1J/wvFGpUZLUPnY0nZZjGmo9hUfcuTb4MFG8A7B3DRhAVxLLUAOA8?= =?us-ascii?Q?yGxKdKMOumwPFSrWO6v+WhjNAPD48ZFtA+CfdCP6jaZsQirVIE3qvFIBe37+?= =?us-ascii?Q?X5BzvTGxuv8IPcX9ua0Clepl7ALnoeI5mAicK2wT394gk/UR5MnljLjcCfUE?= =?us-ascii?Q?HeiPD+sZXzxWmeqdsxPvZDLzAjwqNXVMN4ZUU2iAQ89dtn8WoAOsFv4TRF4L?= =?us-ascii?Q?aM2CX5fTbaVJ5vs6m9h5yZJgrTQp6NoS1Lg9VZthX9CCMhs989DSXQg6bX2X?= =?us-ascii?Q?j/9B8rPxJfLX4Rf6p7rLZ4CVxx58zu2KcBz8iujIcLBNyPgdd1S69Dx9EVVI?= =?us-ascii?Q?As/4qXH4cr9Ta+A44Q7+Pz5dD0YjJ0F4gZ3dulaB+m1wGU6LHV811pQH1XOo?= =?us-ascii?Q?V/Afs0N1zMCSWP+UWuGLot/TixUKjejWiKVd6RrLvSs/ixP7nWirIcpMvkHd?= =?us-ascii?Q?a1Iv/jsHaO9hFpWLLtJ+SzONbQ5vf6N8ya1Z4XNskMYgS2LXirBA2NH3riBq?= =?us-ascii?Q?MnpKiEfN5+DVpbRqf2L7AVDpJGwnYKDW/4pL0DJRxnYIUll1bQ8/6PYaVxob?= =?us-ascii?Q?eWdvgCwh8tokPsuaoXjbTjJnAER4iZViZQSjYDSvxJeaWn9I5rwF2CTdz4dz?= =?us-ascii?Q?0ra1XV3GTffF8IMc3Q+I0woG?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4491.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee510617-ac2c-4963-7e95-08d91c3e263b X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2021 09:52:30.3829 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6RnsfLRYEWGYLvUVnFIaPr1T5CuA2Y8F4BjUl+Ph+tY9x09BcR7+BxSE6R8wHB4ZxaDjCzVoxR0isoHfKNlbcswcwfj9QrpElY4n3dfsAHI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR11MB5685 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] Question Of binutils-avx512-check X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" =20 > On Fri, May 21, 2021 at 09:19:53AM +0100, Bruce Richardson wrote: > > On Fri, May 21, 2021 at 08:56:50AM +0100, Liang Ma wrote: > > > On Fri, May 21, 2021 at 09:04:06AM +0200, Thomas Monjalon wrote: > > > > 20/05/2021 23:22, Liang Ma: > > > > > Hi All, > > > > > I try to build DPDK with debug build-type but the building pr= ocess is > > > > > failed becuase of AVX512 code from librte-acl. The release bui= ld type > > > > > is fine. Hence, I dig a bit into the avx512 enabling logic of = meson. > > > > > > > > > > I found the main logic is implemented inside binutils-avx512-c= heck.sh. > > > > > > > > > > It looks the script focus on checking the compatiblity of tool= s-chain > > > > > instead of CPUID. My problem is current script will produce av= x512 > > > > > code even I build dpdk on AMD platform. I understand the avx51= 2 code > > > > > may not be used in runtime. I just wonder why we can not check= the > > > > > cpuid as well ? > > > > > > > > The same binary can be run on multiple CPUs, > > > > so it makes no sense to check the compilation CPUID in generic comp= ilation. > > > > For native build, why not. > > > > > > > > Anyway, your problem is at compilation, not runtime, right? > > > Yes, the problem is at compilation. > > > Given X86_64, gcc-6.30, Debug build always failed due > > > to librte_acl AVX512 code. I hope there is a graceful switch allow > > > developer disable avx512 in certain circumstance. > > > > Add ACL maintainer on CC. Sounds like there is a problem with the AVX51= 2 > > support detection for acl library. Looking at the meson build code, oth= er > > drivers, such as i40e, do their avx512 detection differently from ACL. If you feel something is wrong in particular, please let me know. > there are 2 concerns here: > 1. librte_acl specific issue cause the debug building failure with gcc 6.= 30. gcc 6.3 is pretty rare these days, but I'll try to find one to reproduce th= e issue. Meanwhile can you follow the procedure - open a new ticket in bugzilla, and provide more info: command to reproduce, particular error output, etc. = =20 > 2. More generic, if that's possible to have a graceful switch for avx512.= (e.g. build option) I don't see much point in that. avx512 code-path wouldn't be used at run-time if your box doesn't support i= t.