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 C528C45AE3; Tue, 8 Oct 2024 18:53:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B13DF40E43; Tue, 8 Oct 2024 18:53:13 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by mails.dpdk.org (Postfix) with ESMTP id E67E540659 for ; Tue, 8 Oct 2024 18:53:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728406389; x=1759942389; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0I9OyarlESUJNTZ1B8YKEjiA6Zw0jtL0IHbp1FqaDX0=; b=IKcpS/YthFe7NHnjU1SMsrX8xo6u5832iXlNZTT1XhjIlTPTFcEK0cBs eqYqIRB84Fkc0bPhL4WPMGWv/WcYmKbSPdmpI1PEdsgKvhYHaGts/ic7Y y5DaS1p7yRMZ95WmeoaqCDfq32bOrlmguLl1Xy8eI4fjo4mZHemnvehUP dSrOWU3guTOJLWUJNMOHk2G0ktX/eXUNeaPk+/lVkQ0p8bIiVEewV3uQn G0vpEVIVSP5tnw9tIjnsT3Wdp2HJie59aHqfqlW3lPo3UMK5Ruiqsx+rg a3Lf7GpVo/sBVlpULo+aQoonq9WfQYtpY2fKE5mvwtZ1ym2sw4ML5VG9m A==; X-CSE-ConnectionGUID: zQH21rEMS0qjA2kKge3jaQ== X-CSE-MsgGUID: 9MzkWdk6SfabaDRqg1hylg== X-IronPort-AV: E=McAfee;i="6700,10204,11219"; a="31517008" X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="31517008" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2024 09:53:08 -0700 X-CSE-ConnectionGUID: D7AQ61hKSt+lk96ac1ttTQ== X-CSE-MsgGUID: 0mDdX7XlQgiDNThfbRGNYA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,187,1725346800"; d="scan'208";a="79883042" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa003.fm.intel.com with ESMTP; 08 Oct 2024 09:53:08 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: david.marchand@redhat.com, Bruce Richardson Subject: [PATCH v3 05/10] net/i40e: use global AVX-512 variables Date: Tue, 8 Oct 2024 17:52:53 +0100 Message-ID: <20241008165258.2802099-6-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241008165258.2802099-1-bruce.richardson@intel.com> References: <20240930175033.2283861-1-bruce.richardson@intel.com> <20241008165258.2802099-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/i40e/meson.build | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index 80171b9dc6..ef7b1f5d34 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -57,18 +57,9 @@ if arch_subdir == 'x86' c_args: [cflags, '-mavx2']) objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c') - i40e_avx512_cpu_support = ( - cc.get_define('__AVX512F__', args: machine_args) != '' and - cc.get_define('__AVX512BW__', args: machine_args) != '') - - i40e_avx512_cc_support = ( - not machine_args.contains('-mno-avx512f') and - cc.has_argument('-mavx512f') and - cc.has_argument('-mavx512bw')) - - if i40e_avx512_cpu_support == true or i40e_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