From patchwork Tue Aug 17 06:29:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Jianhua X-Patchwork-Id: 29588 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp2701950iov; Mon, 16 Aug 2021 23:30:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziFPRY0LZNqaZIWBbuVMyRQblqQsCO5ml/NFyOKYsPuymnwh0UU9QvZSVz7mniYeaqnD8b X-Received: by 2002:aa7:de14:: with SMTP id h20mr2296655edv.43.1629181808229; Mon, 16 Aug 2021 23:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629181808; cv=none; d=google.com; s=arc-20160816; b=lCr+RY7TzlmyxRnMwIm3jGULimbaYBZrNbv2PBevshErWC3lo8Hjcymo5WBbVIKj7k tsXHwIX4sR43tUI7JnNBJvFsaiGwxDE/UuU4NUJPHEJRZgzNJr7cq8ShY3x9ObxGO9N4 jF4WRzFAXQsJwJN02X3Ei8TzbEIQhGJphzLXQNqTG8VLkBPRdJI0hPIS3NR2K2th+9at 5NSTUCDZ/FRN2jFUyPyEn4wq5hne1+G+ZeUZ5rPHnY3nOdgP5lIydnXj+en/EJM4OlCB 2E/1EycsOB1a6HtE7qe3L/kKPzpqiLL5jRQCNHwGs/ZNDwSRhLJ3kZhj+kKOGCeAz28S O4MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=f9d5Bo2+fgHEtC3HoXQonTk19CmkgR6cHWsUJsWCuyE=; b=Gisynyg/eM8D3cyZt/Joub222FJlIGTmUkudT4u61bGXtvTeGLrRW7CGNHe1Aedtpm HCwcpkMH8iSmzf50bxJlIF99n/TY83KuhJ1iJpiisfWUe5qUFI80ymXjYpY3STdaPJ0A RHHtYYQhHfHPopTibn71S8Gl2HUxTHYCBXDQOZGf/JKJ3WTt9ifTABJ2dhOZ8z9kxgnb bbdlABfGSRG2/lnIoA08tBCPG0x7D3rgoIjiPZhFk2tBQNe0dt0O4+mbsBj83WIEN3jo yioLXYxvoTjTkLSopLVBzv+sA0pI8oSo3OAoGUXVQiG57G3ob/Re5i/UXLtqjJP9fBGb 3OaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m15si1332683ejb.569.2021.08.16.23.30.07; Mon, 16 Aug 2021 23:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 46F6D68A4A3; Tue, 17 Aug 2021 09:30:03 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D87AB68A2B2 for ; Tue, 17 Aug 2021 09:29:55 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10078"; a="195588659" X-IronPort-AV: E=Sophos;i="5.84,328,1620716400"; d="scan'208";a="195588659" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2021 23:29:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,328,1620716400"; d="scan'208";a="487889802" Received: from icx-perfkit-ubuntu.sh.intel.com ([10.239.83.146]) by fmsmga008.fm.intel.com with ESMTP; 16 Aug 2021 23:29:52 -0700 From: Wu Jianhua To: ffmpeg-devel@ffmpeg.org Date: Tue, 17 Aug 2021 06:29:48 +0000 Message-Id: <20210817062948.638775-1-jianhua.wu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: set IceLake-AVX512 as the minimum baseline X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Wu Jianhua Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: VI5fhG5zpSkT Based on IceLake-AVX512 and newer architecture, a broad range of the subsets of AVX512 could be supported. Signed-off-by: Wu Jianhua --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 94b30afe74..04caa25736 100755 --- a/configure +++ b/configure @@ -6057,7 +6057,9 @@ EOF elf*) enabled debug && append X86ASMFLAGS $x86asm_debug ;; esac - enabled avx512 && check_x86asm avx512_external "vmovdqa32 [eax]{k1}{z}, zmm0" + # Only IceLake and newer architectures could enable AVX512 + # F/CD/BW/DQ/VL/VNNI/IFMA/VBMI/VBMI2/VPOPCNTDQ/BITALG/GFNI/VAES/VPCLMULQDQ + enabled avx512 && check_x86asm avx512_external "vpdpwssds zmm31{k1}{z}, zmm29, zmm28" enabled avx2 && check_x86asm avx2_external "vextracti128 xmm0, ymm0, 0" enabled xop && check_x86asm xop_external "vpmacsdd xmm0, xmm1, xmm2, xmm3" enabled fma4 && check_x86asm fma4_external "vfmaddps ymm0, ymm1, ymm2, ymm3"