Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rKhMZ-0045EQ-I8 for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jan 2024 16:11:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rKhMY-00Gx5X-3N for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jan 2024 16:11:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rKhMX-00Gx5P-Pv for pgsql-hackers@lists.postgresql.org; Tue, 02 Jan 2024 16:11:29 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rKhMV-00FB4Y-7J for pgsql-hackers@postgresql.org; Tue, 02 Jan 2024 16:11:29 +0000 Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7ba8f139522so482955839f.1 for ; Tue, 02 Jan 2024 08:11:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704211885; x=1704816685; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=mCGnXYGBr2go7ZU85Hw7H3vMOamQTsYAf4g8JBUuktQ=; b=OyYQsYoSwN2AI95Kre9AlmvjCExdRpvN21qcCNF8ansy92iupB2pyGGN43m0vgg0zU n+lmUCCYnrz90fWK9D/YSuPKkm2E285ScEcg2DYSVDfuUPnwVmMuaNiIVe8FlckJf2ip U1P+ljiGhlyEMKHRhO7eEswgAwJhlL9odR6fVxCkD1sUTgzlSEIoWc427SQPYHlzj6K5 +q93DmBXM87Gutl1MPZCnYso84DcLXJJFnxdPcyyVV2ohAvTob5+eVZBrr/gGRoSpCIP 5RbKfn2C41XBoLeGTXZXzqMeYO3l1864PM0JCbFR3zDUavTOylypiFj81j3rLa7r7oAt Tqkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704211885; x=1704816685; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mCGnXYGBr2go7ZU85Hw7H3vMOamQTsYAf4g8JBUuktQ=; b=hg7z6xTGsVmRdpa7mkfU1b4myDt6+jSQQI+fc2u4NvhxpOT2i13nc6HfOFPMpuBNXI L0ErsCX8WzN7ZVUU8eQK/upDvJFTYYYFP9cwEW3TQisJJGM1425FRyV/QV0WS+BgEuTh OeynDzZyF+hIEqTYO7i7QNn3XWYFMb4Olee84klOn6HpQZw6uC7/u27OYpgyz4ksQ8TF gou7xKPqEIqEqS2jQQEvSF5uXTivpt+yy5TsvcZliPfdftzhcNBp2gcMG7d8G0WTwWy8 /wAYwnCWzZNwE/nhxeKMUba/4D0ID96w+6KdR/qgPbeXYNdkT1uDjxkjb9U9NwDzavOc B+tA== X-Gm-Message-State: AOJu0YwP+V2KopqbC4bU0EX0bktHb+41AH4s8WIeeN1YqodR9+68fXzD IZ3Gy7MZOjS0+iEUJ0emo/A= X-Google-Smtp-Source: AGHT+IE3ngE72doo+2X5TNgmkbaLqU0MkgBFPk+jABHPNwDQvuGSGHqr9CDFTKRI6diREC/zTGZK1A== X-Received: by 2002:a5e:c80e:0:b0:7ba:9519:7fc4 with SMTP id y14-20020a5ec80e000000b007ba95197fc4mr24332750iol.38.1704211885239; Tue, 02 Jan 2024 08:11:25 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id du3-20020a056638604300b00469297cbf71sm2035459jab.115.2024.01.02.08.11.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 08:11:24 -0800 (PST) Date: Tue, 2 Jan 2024 10:11:23 -0600 From: Nathan Bossart To: John Naylor Cc: Ants Aasma , pgsql-hackers@postgresql.org Subject: Re: add AVX2 support to simd.h Message-ID: <20240102161123.GA955987@nathanxps13> References: <20231129171526.GA857928@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jan 01, 2024 at 07:12:26PM +0700, John Naylor wrote: > On Thu, Nov 30, 2023 at 12:15 AM Nathan Bossart > wrote: >> I don't intend for this patch to be >> seriously considered until we have better support for detecting/compiling >> AVX2 instructions and a buildfarm machine that uses them. > > That's completely understandable, yet I'm confused why there is a > commitfest entry for it marked "needs review". Perhaps I was too optimistic about adding support for newer instructions... I'm tempted to propose that we move forward with this patch as-is after adding a buildfarm machine that compiles with -mavx2 or -march=x86-64-v3. There is likely still follow-up work to make these improvements more accessible, but I'm not sure that is a strict prerequisite here. (In case it isn't clear, I'm volunteering to set up such a buildfarm machine.) -- Nathan Bossart Amazon Web Services: https://aws.amazon.com