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 F31C945A6C; Mon, 30 Sep 2024 19:51:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74D2E40656; Mon, 30 Sep 2024 19:50:52 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by mails.dpdk.org (Postfix) with ESMTP id EA4D4402B3 for ; Mon, 30 Sep 2024 19:50:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727718649; x=1759254649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w1RAu8Rd12dM/IODyRXidGueaqu6rOnz59Xeu9fE95o=; b=k8F4zsNKMxp57b6P2wGawwYnz3AwneDgsHU67K7qW4khi6ID0L644qVT YOJjwFBxHqQsfW6n4WTJqibmeiX3+KXNcWg4wXRam3ulESTpJJOGDoZF4 rkKlaj1zF/8sMvKEnnsIIQ46fVVhTfx1eS+zD2IXvCicNYcJ5nHtHm10z orhdhhTTSsgCkmxcMuNBiNN0K8Mz6wioIBCwZpbQXM0qwgUQCU7Z1Tsr6 8OiuMyT8tKsk791AAOf758Y+PAkMeGIJx4FJO+ArYDbVWrbLg7fi7oMlu AgwqU0gunJ8j4KNvc8cu4QLdMREGZCCuW1xAgtdEthK8K98j9nZqRyxqW A==; X-CSE-ConnectionGUID: Mv2P7bDFTzC3S85pbwxDyg== X-CSE-MsgGUID: ZaDySqmxQBCepX4N8WHbeQ== X-IronPort-AV: E=McAfee;i="6700,10204,11211"; a="30712528" X-IronPort-AV: E=Sophos;i="6.11,166,1725346800"; d="scan'208";a="30712528" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2024 10:50:48 -0700 X-CSE-ConnectionGUID: jMmKL0TCTQSodvC0koJwlQ== X-CSE-MsgGUID: wuTcqmKMRd24+wnF4MRmRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,166,1725346800"; d="scan'208";a="77457754" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa003.fm.intel.com with ESMTP; 30 Sep 2024 10:50:47 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Jingjing Wu Subject: [PATCH v1 3/8] common/idpf: use global AVX-512 variables Date: Mon, 30 Sep 2024 18:50:27 +0100 Message-ID: <20240930175033.2283861-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240930175033.2283861-1-bruce.richardson@intel.com> References: <20240930175033.2283861-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/common/idpf/meson.build | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/common/idpf/meson.build b/drivers/common/idpf/meson.build index 80c8906f80..1cf215186c 100644 --- a/drivers/common/idpf/meson.build +++ b/drivers/common/idpf/meson.build @@ -16,22 +16,9 @@ sources = files( ) if arch_subdir == 'x86' - idpf_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) != '' - ) - - idpf_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 idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true + if target_has_avx512 or cc_has_avx512 cflags += ['-DCC_AVX512_SUPPORT'] - avx512_args = [cflags, '-mavx512f', '-mavx512bw', '-mavx512dq'] + avx512_args = [cflags] + cc_avx512_flags if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' endif -- 2.43.0