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 C4EE445A7B; Tue, 1 Oct 2024 13:18:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BC7D4068A; Tue, 1 Oct 2024 13:18:19 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 7645A4066C for ; Tue, 1 Oct 2024 13:18:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727781496; x=1759317496; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=faeqMyLq6aiRx0SUZQq5dZ/jlxY34EQdyxGnTN9xB94=; b=KzjqmGcBIMvhcM4w33Cnx/FKiIS48sH/dGD/VB5bsB6ZQbFc0JO+orPY L19d/ooU60+E9x0gc7bXjamVE9Tsb+oYPtERgz7ylzScQP+GULHY1Ilg1 w96HuGBmsPJ4Jm2QxHXWDuAGgcYtox8JCqfSj/xJENbbSgPCvBnNfMmsZ QY599L5ytaKFrb8qvgYb4yfxdMvA1plvShMoLWSewjJxDN7TMGuo5XYu6 qkvK/5Bb8QlylAGYB8r2spaIOUEZzpQMDoRJtlObjF0ofnK0WqZqldIBK SCezI7G0vjOMDaN9RhYi53HUwxmTgDJ5DKoZRht8bMW7DKxazy20BDZCZ Q==; X-CSE-ConnectionGUID: iuNYjiOiR8SEwGd1t82K5Q== X-CSE-MsgGUID: 2Pkeq/z4SQiVPYjs29alNg== X-IronPort-AV: E=McAfee;i="6700,10204,11211"; a="27084546" X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="27084546" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2024 04:18:16 -0700 X-CSE-ConnectionGUID: FxW7S9KYS5+shaJpFRcAyw== X-CSE-MsgGUID: KoFaX74LQtK7WzMAvYNLhQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="74047102" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa007.jf.intel.com with ESMTP; 01 Oct 2024 04:18:15 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jingjing Wu Subject: [PATCH v2 6/8] net/iavf: use global AVX-512 variables Date: Tue, 1 Oct 2024 12:17:59 +0100 Message-ID: <20241001111802.2728765-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241001111802.2728765-1-bruce.richardson@intel.com> References: <20240930175033.2283861-1-bruce.richardson@intel.com> <20241001111802.2728765-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Replace per-driver checks for AVX-512 with the standard variables from config/x86. Signed-off-by: Bruce Richardson --- drivers/net/iavf/meson.build | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/net/iavf/meson.build b/drivers/net/iavf/meson.build index 83aebd5596..27d104cc12 100644 --- a/drivers/net/iavf/meson.build +++ b/drivers/net/iavf/meson.build @@ -39,18 +39,9 @@ if arch_subdir == 'x86' c_args: [cflags, '-mavx2']) objs += iavf_avx2_lib.extract_objects('iavf_rxtx_vec_avx2.c') - iavf_avx512_cpu_support = ( - cc.get_define('__AVX512F__', args: machine_args) != '' and - cc.get_define('__AVX512BW__', args: machine_args) != '') - - iavf_avx512_cc_support = ( - not machine_args.contains('-mno-avx512f') and - cc.has_argument('-mavx512f') and - cc.has_argument('-mavx512bw')) - - if iavf_avx512_cpu_support == true or iavf_avx512_cc_support == true + if cc_has_avx512 cflags += ['-DCC_AVX512_SUPPORT'] - avx512_args = [cflags, '-mavx512f', '-mavx512bw'] + avx512_args = cflags + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' endif -- 2.43.0