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 6F84B45A7B; Tue, 1 Oct 2024 13:18:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CBC9040673; Tue, 1 Oct 2024 13:18:16 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 3F0A240656 for ; Tue, 1 Oct 2024 13:18:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727781494; x=1759317494; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gTzYQXWgFvBqavQVlUMy46PW20g2yy1byPty5unEh0Y=; b=Xexcljg6xqWcpAHUNL9jCC1UknUMb2B5QeqWaGTioAzNrvp79ZVHcYR0 hNJkzUIt4Ig9LCOheiTml3BW9QPC0zo6rhuhIrj0Gca15ORfVZHKPMdnR IDx9Vo+TFMYSgLTtzeFhzHpksCSfgeVDzPmfd3gPZx0GAr8iKCcfsFkxZ a5CZIKpiWvRTEcnQIaX1a0xRH+TpSTh6c/7HovnxlDfjhASKzOmgBgHbT TOHCKnSpDtdGRrmvpnMFGy7iQTvhePJodKZQigKsPmvk5lFKQiKJ0y2Qq LKvEjTlB1kR9zbZflI3MxbfL7XnkLekmRqrgHyXTVy4zkAVL+tg0kax2D g==; X-CSE-ConnectionGUID: e+B8Uy1rRl+sqaZo2UYpwA== X-CSE-MsgGUID: btxH0u/YTGO39rLTaSYlrg== X-IronPort-AV: E=McAfee;i="6700,10204,11211"; a="27084540" X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="27084540" 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:13 -0700 X-CSE-ConnectionGUID: cstlHIuhRza9hOQUdVosTA== X-CSE-MsgGUID: YyVio98JQFCBQegJolfcNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,167,1725346800"; d="scan'208";a="74047090" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa007.jf.intel.com with ESMTP; 01 Oct 2024 04:18:13 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH v2 4/8] net/cpfl: use global AVX-512 variables Date: Tue, 1 Oct 2024 12:17:57 +0100 Message-ID: <20241001111802.2728765-5-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/cpfl/meson.build | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/net/cpfl/meson.build b/drivers/net/cpfl/meson.build index e4e0e269bd..87fcfe0bb1 100644 --- a/drivers/net/cpfl/meson.build +++ b/drivers/net/cpfl/meson.build @@ -22,23 +22,8 @@ sources = files( 'cpfl_rules.c', ) -if arch_subdir == 'x86' - cpfl_avx512_cpu_support = ( - cc.get_define('__AVX512F__', args: machine_args) != '' and - cc.get_define('__AVX512BW__', args: machine_args) != '' and - cc.get_define('__AVX512DQ__', args: machine_args) != '' - ) - - cpfl_avx512_cc_support = ( - not machine_args.contains('-mno-avx512f') and - cc.has_argument('-mavx512f') and - cc.has_argument('-mavx512bw') and - cc.has_argument('-mavx512dq') - ) - - if cpfl_avx512_cpu_support == true or cpfl_avx512_cc_support == true - cflags += ['-DCC_AVX512_SUPPORT'] - endif +if arch_subdir == 'x86' and cc_has_avx512 + cflags += ['-DCC_AVX512_SUPPORT'] endif if dpdk_conf.has('RTE_HAS_JANSSON') -- 2.43.0