From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qK3UIAHYs2H4bwEAgWs5BA (envelope-from ) for ; Fri, 10 Dec 2021 23:43:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GBygHAHYs2FtYwAA1q6Kng (envelope-from ) for ; Fri, 10 Dec 2021 22:43:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 476D9248CD for ; Fri, 10 Dec 2021 23:43:13 +0100 (CET) Received: from localhost ([::1]:60840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvobg-0007lQ-Ey for larch@yhetil.org; Fri, 10 Dec 2021 17:43:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvobW-0007l1-Pt for bug-guix@gnu.org; Fri, 10 Dec 2021 17:43:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36596) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvobW-0004kb-Ha for bug-guix@gnu.org; Fri, 10 Dec 2021 17:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvobW-000672-Fu for bug-guix@gnu.org; Fri, 10 Dec 2021 17:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52001: numpy CPU dispatch probably prevents builds of python-numpy from being reproducible Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 10 Dec 2021 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52001 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Received: via spool by 52001-submit@debbugs.gnu.org id=B52001.163917617223479 (code B ref 52001); Fri, 10 Dec 2021 22:43:02 +0000 Received: (at 52001) by debbugs.gnu.org; 10 Dec 2021 22:42:52 +0000 Received: from localhost ([127.0.0.1]:48142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvobL-00066d-SP for submit@debbugs.gnu.org; Fri, 10 Dec 2021 17:42:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvobK-00066P-2K for 52001@debbugs.gnu.org; Fri, 10 Dec 2021 17:42:50 -0500 Received: from [2001:470:142:3::e] (port=51922 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvobE-0004i0-E3; Fri, 10 Dec 2021 17:42:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=BbdwOCUcRQp5p3tLzq7/AB4svYMD5TqZxIspD5zf2vA=; b=kpPOuZhTXmmV/dQHovd4 yyod/xA4zvyiFhtBfwFfHLvFEob4d59P3slA5pYrZK/TRBqMbhrfaYVhckkwcKvIpI+OsV+AJO2Pd 9NKbGoBA9N50lOJknZVuqfzN27wer+8ishuZFLdoYyF8cuqjaUlvkgEG7WcQcr+0oW8ukfXcuAV1H NDJtWTDmiEFNsuB3vVYfcXQ1o/3U50R9rMW40gFmt1LCAgmkxojTPLjQHPTW/6dhLVh9QOU5Ld8+l b6mB2WZfCEiwuSduhH0jLf0hgML3RC4Rzo75aXnTrFdoqNwhH+mklDRNs35mWWBLBVcd3gF9vAMo+ tvo2rpUgykPx+w==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:49556 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvobE-0000pm-CD; Fri, 10 Dec 2021 17:42:44 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87y25ihm3e.fsf@elephly.net> Date: Fri, 10 Dec 2021 23:42:41 +0100 In-Reply-To: <87y25ihm3e.fsf@elephly.net> (Ricardo Wurmus's message of "Sat, 20 Nov 2021 15:36:57 +0000") Message-ID: <87y24s5bfi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 52001@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639176193; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BbdwOCUcRQp5p3tLzq7/AB4svYMD5TqZxIspD5zf2vA=; b=pCesMBYn49yEbssO0ZifodobenV9RqTbLIdv1tZQ2BOqfR9csHZbUpnr0GjQUp/JJ70ESY mPdLyNKYsw1+LkGoK77wz56AOzBLlhN+NAkzD/aWLDzw/KYQBvqsvcehRCgD04kpu7pl3p cMHzhF1M7citr5uEZut5NHx7DdiQKtS2WtFb5B+E1E71hnx1juxRPnXVBjocdvkoBhL+GJ 6HZVqRolQ23YHxgzT5ryrwjIFzf70vU4/nAnz8Y0cXLShuZE1sv16dr397Aauef27ffgIZ 4wl0UCkqMv5etLAfLrJvTgEuufFRyFUWrek9lLrA8BQKNb4JR6bhwQJdLNWJnQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639176193; a=rsa-sha256; cv=none; b=BLOVbaW3M76NzYJ5TsrVWbLfHcvslcvoL0Da5GljbdlN3XC2uCbyYXHyg7ZHFI1sMWXhor gyjhqcYR0EIfYIQ12QEQBZyB2XgeddJn6D0Bc9/MfWvCIKuqwJiiqhlmdtfeuZn6tzGN/N AcC+9FaalI1beN2j68NUM3YW/boPEmj+4x0JhnTWIhzMx5FLNn8pP8epjk+mRgcjN9xG+V DOQW6d7BIiU7oapxiILMrfsLRUksbwgTmA1mPj2AP5Dn2HQnTwQ0nZUH+RqCrzHGw9u575 T1MsIEy3awJMqg9LhldRiAAgItnAs5sM9ZFI/ayC3hcWAO0qNxaiZuALb9WY+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kpPOuZhT; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=kpPOuZhT; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 476D9248CD X-Spam-Score: -3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: S8zS70AwIHBN Hi, Ricardo Wurmus skribis: > Numpy accelerates operations with native code. Early in the build it > probes the CPU / compiler for supported instruction extensions and > then proceeds to build extensions for different features. I=E2=80=99m > guessing that this won=E2=80=99t work when building on older CPUs, so the= =20 > results of two builds on different CPUs may differ. I don=E2=80=99t see anything in the build log that suggests it might be bui= lding for a specific ISA extension (on x86_64). On the contrary, it seems to do the right thing by dispatching to the right optimized implementation at run time, in numpy/core/src/umath. Apparently this directory contains templates for home-made function multi-versioning, with variants and dispatch code generated by numpy/core/code_generators/generate_umath.py. Besides, I see the same .pyc difference as Maxime, but I don=E2=80=99t thin= k it relates to ISA extensions. Ludo=E2=80=99.