From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YdUWAbgJR2FE8AAAgWs5BA (envelope-from ) for ; Sun, 19 Sep 2021 11:58:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id bqamN7cJR2FuXgAAbx9fmQ (envelope-from ) for ; Sun, 19 Sep 2021 09:58:15 +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 353E5EACD for ; Sun, 19 Sep 2021 11:58:15 +0200 (CEST) Received: from localhost ([::1]:39412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRtaQ-0003PR-CC for larch@yhetil.org; Sun, 19 Sep 2021 05:58:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRtaE-0003Jl-2h for bug-guix@gnu.org; Sun, 19 Sep 2021 05:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRtaD-0007dY-NS for bug-guix@gnu.org; Sun, 19 Sep 2021 05:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRtaD-0008Dr-NN for bug-guix@gnu.org; Sun, 19 Sep 2021 05:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50672: python-pytorch is not reproducible Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 19 Sep 2021 09:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50672 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50672@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163204544531557 (code B ref -1); Sun, 19 Sep 2021 09:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Sep 2021 09:57:25 +0000 Received: from localhost ([127.0.0.1]:37498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRtZc-0008Cu-OW for submit@debbugs.gnu.org; Sun, 19 Sep 2021 05:57:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:41946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRtZb-0008Cm-1Q for submit@debbugs.gnu.org; Sun, 19 Sep 2021 05:57:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRtZa-0002h4-Oj for bug-guix@gnu.org; Sun, 19 Sep 2021 05:57:22 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:60887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRtZY-00070g-5O for bug-guix@gnu.org; Sun, 19 Sep 2021 05:57:22 -0400 IronPort-HdrOrdr: A9a23:BDqADKtu8rqTdxuM4mRMwNJm7skDjNV00zEX/kB9WHVpm62j5qaTdZsgpH3JYVoqM03I+urwX5VoI0mskKKdiLN5VYtKNzOKhILHFutfBMfZslndMhy70NQ179YCT4FOTOTfNBxUjcH17BKgCNYm3bC8kJyAtKPm4U4obw17ApsA0y5JTj+0KwlVSBkDJbdRLvShz/sCnDa+f3EKc8S8AXEfT6zvr8DG/aiIXTc2QyIdzWC14Q+V1A== X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="393381677" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2021 11:57:15 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour du Travail de =?UTF-8?Q?l'Ann=C3=A9e?= 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 19 Sep 2021 11:57:14 +0200 Message-ID: <875yuwsxad.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1632045495; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=BjvTtqGF2fXbcLsJKYGMpJUc6Tp6AulASzORlU1Cb9Q=; b=uuiyE427/Cr1x5F5Z16YHWSnwO/ibA/prPjKVE6g6anUSCT2SqrElyPEfay/9jGyny7Zth 8k9O2gThnBnZQchecEWdWH4srBv6awN5v3TdGtooa7hje64ivum+dTsnmXkTjNXcPUxg5o FhkPs5sHr8ysMoYDMdJ3t2aH4IcCrZcETMDbOMaQG9ih1V8rQgPM9ueCozK0wPhAy1lUvh JmksvR6C0+mG+sSmdKBvFgUQ1MoboxDP6HFLJOD+owcqSlOS9bqE9p3q5rWM2sj9+AM449 qFDXS2HbrFb/bOp6SnoZzFFklf0BMgTnN0Ie4937+uHpL3Vjk8ntsdd7UVDjcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632045495; a=rsa-sha256; cv=none; b=HJc3ERjy6NP081i526t9B52CLVbENk06NCiO1m05oLheU0/1lD02IdrMUa1euCE3aqJLQ0 oGl+/BgPnOZAsfDy6FAFo5/ptwPFOgBU8h4a8UvLLjodvZhX9WU/OK0RcFMrx9GvjjXJa2 +tawlZ4XYBk8N7+umgsdG57ySgwg9BGMxcGIfCR642hd4J8N7kuHgJVgQyHZ1GerC258wt Xk8XXSe2xoRkriASuG7O4jHilu97O764s99XOq5W9ZXsov5gPU4Fz6gX2ec3ltp3bpscwT pW8u9DNcv5KvoePZ/imAXkZqaTtnJUq+rXtLoadF6FZXAIHNsadTtIU9i1kKqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 353E5EACD X-Spam-Score: -2.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2RGDHsRDLAJm --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Bad news! --8<---------------cut here---------------start------------->8--- $ guix challenge python-pytorch /gnu/store/dgdswx4vvf07xmhih21n4fnr68dh3fhd-python-pytorch-1.9.0 contents d= iffer: no local build for '/gnu/store/dgdswx4vvf07xmhih21n4fnr68dh3fhd-python-py= torch-1.9.0' https://ci.guix.gnu.org/nar/lzip/dgdswx4vvf07xmhih21n4fnr68dh3fhd-python-= pytorch-1.9.0: 0i55iwy3z4da4lhn93dnrmz775s9ga5kyfli6cmrchacacf9xfpq https://bordeaux.guix.gnu.org/nar/lzip/dgdswx4vvf07xmhih21n4fnr68dh3fhd-p= ython-pytorch-1.9.0: 1fl2v4pd0gcw7wp5k662q0zd4lvvzsggcm5ii8b4kq4v6synhkic differing file: /lib/python3.8/site-packages/torch/lib/libtorch_cpu.so 1 store items were analyzed: - 0 (0.0%) were identical - 1 (100.0%) differed - 0 (0.0%) were inconclusive $ guix describe=20 Generacio 189 Aug 30 2021 12:09:27 (nuna) guix f91ae94 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: f91ae9425bb385b60396a544afe27933896b8fa3 --8<---------------cut here---------------end--------------->8--- The file is 165=C2=A0MiB and Diffoscope (which reads the output of =E2=80= =98objdump=E2=80=99) takes forever on it. However, by comparing the output of =E2=80=98strings=E2=80=99 on each file,= we get a hint: --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff -ubBr --show-c-function /tmp/str2 /tmp/str1 --- /tmp/str2 2021-09-19 11:14:47.806798779 +0200 +++ /tmp/str1 2021-09-19 11:14:41.962761127 +0200 @@ -1100584,472 +1100584,472 @@ compute_fast_convolution_input_gradient compute_grad_kernel_transform compute_fast_convolution_kernel_gradient.isra.0 compute_fast_convolution_output -nnp_fft8x8_with_offset_and_stream__avx2.__local0 -nnp_fft8x8_with_offset_and_stream__avx2.__local13 -nnp_fft8x8_with_offset_and_stream__avx2.__local18 -nnp_fft8x8_with_offset_and_stream__avx2.__local1 +nnp_fft8x8_with_offset_and_stream__avx2.__local5 nnp_fft8x8_with_offset_and_stream__avx2.__local16 +nnp_fft8x8_with_offset_and_stream__avx2.__local6 +nnp_fft8x8_with_offset_and_stream__avx2.__local11 +nnp_fft8x8_with_offset_and_stream__avx2.__local0 nnp_fft8x8_with_offset_and_stream__avx2.__local2 nnp_fft8x8_with_offset_and_stream__avx2.__local7 -nnp_fft8x8_with_offset_and_stream__avx2.__local17 -nnp_fft8x8_with_offset_and_stream__avx2.__local10 -nnp_fft8x8_with_offset_and_stream__avx2.__local8 nnp_fft8x8_with_offset_and_stream__avx2.__local15 +nnp_fft8x8_with_offset_and_stream__avx2.__local8 nnp_fft8x8_with_offset_and_stream__avx2.__local3 -nnp_fft8x8_with_offset_and_stream__avx2.__local6 -nnp_fft8x8_with_offset_and_stream__avx2.__local14 -nnp_fft8x8_with_offset_and_stream__avx2.__local9 +nnp_fft8x8_with_offset_and_stream__avx2.__local1 nnp_fft8x8_with_offset_and_stream__avx2.__local4 [=E2=80=A6] nnp_shdotxf8__avx2.__local13 -nnp_shdotxf8__avx2.__local15 nnp_shdotxf8__avx2.__local0 +nnp_shdotxf8__avx2.__local9 +nnp_shdotxf8__avx2.__local10 +nnp_shdotxf8__avx2.__local11 +nnp_shdotxf8__avx2.__local12 +nnp_shdotxf8__avx2.__local2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This appears to come from NNPACK, one of the libraries that are still bundled. These functions seem to be generated by Python scripts that use PeachPy, such as NNPACK/src/x86_64-fma/2d-fourier-8x8.py: --8<---------------cut here---------------start------------->8--- for post_operation in ["stream", "store"]: fft8x8_arguments =3D (arg_t_pointer, arg_f_pointer, arg_t_stride, arg_f= _stride, arg_row_count, arg_column_count, arg_row_offset, arg_column_offset) with Function("nnp_fft8x8_with_offset_and_{post_operation}__avx2".forma= t(post_operation=3Dpost_operation), fft8x8_arguments, target=3Duarch.default + isa.fma3 + isa.avx2): [=E2=80=A6] --8<---------------cut here---------------end--------------->8--- The =E2=80=98__local=E2=80=99 bit in the name comes from PeachPy, in peachp= y/name.py: --8<---------------cut here---------------start------------->8--- suffixed_name =3D "__local" + str(suffix) for name_object in iter(unnamed_objects): # Generate a non-conflicting name by appending a suffix while suffixed_name in self.names: suffix +=3D 1 suffixed_name =3D "__local" + str(suffix) --8<---------------cut here---------------end--------------->8--- So the problem may be that these things get generated in parallel, and thus numbering is non-deterministic. NNPACK/CMakeLists.txt has this bit to generate targets to build all that: --8<---------------cut here---------------start------------->8--- ADD_CUSTOM_COMMAND( OUTPUT ${obj} COMMAND "PYTHONPATH=3D${PEACHPY_PYTHONPATH}" ${PYTHON_EXECUTABLE} -m peachpy.x86_64 -mabi=3Dsysv -g4 -mimage-format=3D${PEACHPY_IMAGE_FORMAT} "-I${PROJECT_SOURCE_DIR}/src" "-I${PROJECT_SOURCE_DIR}/src/x86_= 64-fma" "-I${FP16_SOURCE_DIR}/include" -o ${obj} "${PROJECT_SOURCE_DIR}/${src}" DEPENDS ${NNPACK_BACKEND_PEACHPY_OBJS}) --8<---------------cut here---------------end--------------->8--- It might be that building just those targets sequentially would solve the problem. To be continued=E2=80=A6 Ludo=E2=80=99. --=-=-=--