From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uMRbBLLhAmXKNAEAauVa8A:P1 (envelope-from ) for ; Thu, 14 Sep 2023 12:34:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uMRbBLLhAmXKNAEAauVa8A (envelope-from ) for ; Thu, 14 Sep 2023 12:34:26 +0200 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 53CCE51FA5 for ; Thu, 14 Sep 2023 12:34:25 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=d9OzRzSX; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694687666; 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: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=Ie8HTYw17dvtFM9lJ7sKIzpmzt1x5i2Kw75mZtbTBGQ=; b=GDMlc0858A5s+CUiafbOGKft84HSj+qrw9lu+Vqlc7DKKBGaGNdC4Bp5b+S42hIkZPb8cY b6vPpQXGW8Y7AEZpa4H5NJJ4O9sQl+ZqHD071tC9tJStbAj/SRWwa+RDm0/xA/roLw7U81 dqj5vwB1lfDRMp8TsG28Znf1Qj3XSzI9KiiQjGbkER/6loFQlrLoW7whjWPZ/va0S7nzXf WNf2cWU+HkbVjiXj5kaibgc8zTDgVphZ2podBQFBdo6lCf8Zyj7TQ8fZH0XNNVyJMssHhp L2Bps2GndodN1WBjGlt4sPj1h1kh785Xkdqo2bPexTvIhLPieDzZ/rC5cc+5JQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694687666; a=rsa-sha256; cv=none; b=n9Bg3yiCzSY+eqVoTbXF0273PZrIAsjyzsSZLtL7gc5ckmubHCwm9g8dnUNt6f9P+LLkJP j3Qw+N+qpWKqLq0mHMFAaiZjNrGDhIhfvraAUZyNdHnPwbRutMrpNovFlmu+4OxT49CR+k y9fZ7y0E1bq5/R4WH8ffDNY4ZuzBLPqVbaVDBuZg5RlzC1aPs3YKEz8CNIDnGPzacPvCWS uqjN3DTR0rHw3OY542IhIKtkQsvlNkjxMnIYCb+BCbmwmUri7VA6rEaOa+mSFtygxAmhtd OEKbiXJqgCtDbFOxkN6fdWs6pR4hiNU2Fh0W6nl2q9h37UHWMRYFapoUY7pJHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=d9OzRzSX; dmarc=none; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgjfa-0004uu-Gb; Thu, 14 Sep 2023 06:33:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgjfZ-0004uX-5M for bug-guix@gnu.org; Thu, 14 Sep 2023 06:33:57 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgjfY-0004m6-Tr for bug-guix@gnu.org; Thu, 14 Sep 2023 06:33:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgjfe-0004Pz-EZ for bug-guix@gnu.org; Thu, 14 Sep 2023 06:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63986: Julia is very slow Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 14 Sep 2023 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63986 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 63986@debbugs.gnu.org, Nicolas Graves , csantosb@inventati.org, Simon Tournier Received: via spool by 63986-submit@debbugs.gnu.org id=B63986.169468762916964 (code B ref 63986); Thu, 14 Sep 2023 10:34:02 +0000 Received: (at 63986) by debbugs.gnu.org; 14 Sep 2023 10:33:49 +0000 Received: from localhost ([127.0.0.1]:37744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjfQ-0004PY-V4 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 06:33:49 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:59545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgjfL-0004PH-7i for 63986@debbugs.gnu.org; Thu, 14 Sep 2023 06:33:47 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40472c3faadso3697195e9.2 for <63986@debbugs.gnu.org>; Thu, 14 Sep 2023 03:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694687611; x=1695292411; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=Ie8HTYw17dvtFM9lJ7sKIzpmzt1x5i2Kw75mZtbTBGQ=; b=d9OzRzSXIzwQB+X/r8S/TPjneqJycmFAFPZmVNmAttnJvgTBg2+/B7u4AJ5QiK9YfX 48pRg8BZtRgMRjQvpJdY+frAVMiTDF7xB2FpmcU5veYvWS5Ubgu2zYpWkqVg3nYChqW5 FZPya76ET1XgSIXyCZzyIQm+7pRwxDmwXxste5G9o2ZbRjN6Gup+dwncLmNsBBOzpwj+ zwjTN7vTGQwsG1mO6mLmhtpcwYr/eWbE9rB1y+idc8wZRgiqNaPjIAzeIcqBqAoosVN8 fuhvkHEemzf02WiiA6U+biAP4ZnV5wmYvSygWWrlPKjiRFFRBP5bKp/Uv4GOUDdU70+l eqiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694687611; x=1695292411; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ie8HTYw17dvtFM9lJ7sKIzpmzt1x5i2Kw75mZtbTBGQ=; b=Kj7a+olxf9JM6JcEgfWERR7Ap0HofEU5AWzTWuYW3l31hrU6tH/F85QQNFBH97OFno +ASWICyYId696FKTj89QtlCDScUineuWj5QDJtmgPUngZJo+tQ29mmDdBc2N6nEwoMZH dhCq16rSobfwl15/BTYv0aqdFFcdb/fNNzV21jywGeHLULlsVfWiurFTjMxyw5ZVeIbu sHu0bhwj1vPIUQHjAB8eevbDU99jOFHiv9TTv153e+DbkFmUBduqb7nZT2jAKwX0amZI r8p5tkl8ZK7YContArddZ0iloLDBJNy2kFcJv1m7PgOBH+aOQGxbwIhp18HvGh16qoeP kzFw== X-Gm-Message-State: AOJu0Yw5wDbi+Qz0rIeZieKM0cERE1PRj/xFIHIFqi19Rey3id7djxMj AqtDiBRgtIrDsgQBEv3od5U= X-Google-Smtp-Source: AGHT+IGU5y6lsotpCqgpInWU/xOISGhOmqpVf2VskAo7CCcdZrUnMqk9hsX9nIr5yOA1XK2rUJHpgw== X-Received: by 2002:a05:600c:290:b0:3fe:2011:a7ce with SMTP id 16-20020a05600c029000b003fe2011a7cemr4505874wmk.6.1694687611126; Thu, 14 Sep 2023 03:33:31 -0700 (PDT) Received: from localhost ([2a02:ed3:916:6300:c3db:b80e:a694:a54f]) by smtp.gmail.com with ESMTPSA id m13-20020a7bca4d000000b003fe4548188bsm4464502wml.48.2023.09.14.03.33.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:33:30 -0700 (PDT) Date: Thu, 14 Sep 2023 13:33:22 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Simon Tournier , 63986@debbugs.gnu.org, Nicolas Graves , csantosb@inventati.org References: <87wmzvmxt8.fsf@inventati.org> <87h6qz8pg0.fsf@gmail.com> <87cz1n8lq3.fsf@gmail.com> <871qi24k9z.fsf@inria.fr> <87h6qy71oa.fsf@gmail.com> <87o7kpku0u.fsf@gnu.org> <87jztpqvtz.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="curqSLtO4F5mndYD" Content-Disposition: inline In-Reply-To: <87jztpqvtz.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 0.62 X-Spam-Score: 0.62 X-Migadu-Queue-Id: 53CCE51FA5 X-Migadu-Scanner: mx0.migadu.com X-TUID: ++Ajwji0MUtp --curqSLtO4F5mndYD Content-Type: multipart/mixed; boundary="frliOzMGhlesvkSS" Content-Disposition: inline --frliOzMGhlesvkSS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 20, 2023 at 10:53:44PM +0200, Ludovic Court=C3=A8s wrote: > Hi! >=20 > Friendly ping. :-) >=20 > https://issues.guix.gnu.org/63986 >=20 > Ludo=E2=80=99. >=20 > Ludovic Court=C3=A8s skribis: >=20 > > Hi there! > > > > What=E2=80=99s the status? Sounds like we have a couple of fixes alrea= dy. > > > > Maybe you can submit one of them to guix-patches@gnu.org so qa.guix can > > pick it up. And if one of them is more intrusive (more rebuilds), then > > submit it separately so it gets merged later? How does that sound? > > > > Ludo=E2=80=99. I've attached a diff to adjust openblas64 and to use it for x86_64 in julia. I don't know if it's faster than the current openblas. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --frliOzMGhlesvkSS Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="julia-openblas-ilp64.patch" Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm index ba54175822..8ba2b480ce 100644 --- a/gnu/packages/julia.scm +++ b/gnu/packages/julia.scm @@ -269,7 +269,10 @@ (define-public julia (substitute* (jlpath "nghttp2") (((from "libnghttp2")) (to "libnghttp2" "libnghttp2"))) (substitute* (jlpath "OpenBLAS") - (((from "libopenblas")) (to "openblas" "libopenblas"))) + (((from "libopenblas")) + ,@(if (target-x86-64?) + `((to "openblas" "libopenblas64_" "libopenblas")) + `((to "openblas" "libopenblas"))))) (substitute* (jlpath "OpenLibm") (((from "libopenlibm")) (to "openlibm" "libopenlibm"))) (substitute* (jlpath "PCRE2") @@ -479,12 +482,13 @@ (define-public julia "NO_GIT=3D1" ; build from release tarball. "USE_GPL_LIBS=3D1" ; proudly =20 - ,@(if (target-aarch64?) - `("USE_BLAS64=3D0") - '()) - - "LIBBLAS=3D-lopenblas" - "LIBBLASNAME=3Dlibopenblas" + ,@(if (target-x86-64?) + `("USE_BLAS64=3D1" + "LIBBLAS=3D-lopenblas64_" + "LIBBLASNAME=3Dlibopenblas64_") + `("USE_BLAS64=3D0" + "LIBBLAS=3D-lopenblas" + "LIBBLASNAME=3Dlibopenblas")) =20 (string-append "UTF8PROC_INC=3D" (assoc-ref %build-inputs "utf8proc") @@ -513,7 +517,9 @@ (define-public julia ("llvm" ,llvm-julia) ("mbedtls-apache" ,mbedtls-apache) ("mpfr" ,mpfr) - ("openblas" ,openblas) + ,@(if (target-x86-64?) + `(("openblas" ,openblas-ilp64)) + `(("openblas" ,openblas))) ("openlibm" ,openlibm) ("p7zip" ,p7zip) ("pcre2" ,pcre2) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index f5a2181905..2d3ce41cb7 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4645,7 +4645,9 @@ (define-public openblas-ilp64 (arguments (substitute-keyword-arguments (package-arguments openblas) ((#:make-flags flags #~'()) - #~(append (list "INTERFACE64=3D1" "LIBNAMESUFFIX=3Dilp64") + #~(append (list "INTERFACE64=3D1" + "SYMBOLSUFFIX=3D64_" + "LIBPREFIX=3Dlibopenblas64_") #$flags)))) (synopsis "Optimized BLAS library based on GotoBLAS (ILP64 version)") (license license:bsd-3))) --frliOzMGhlesvkSS-- --curqSLtO4F5mndYD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmUC4XEACgkQQarn3Mo9 g1EpERAAu5cuxwDgm/zbny1oH7HA7eqYG3lCvxgNIGCp6voTzhSi9g7gZtJd3IPa 6NdfOcqv4P98n6iSxZN5Y+0Nrx2Cym6ck0KgI5xrGCTbGgy9SGhSdPIm1jRpwFQw yDFRwb/O4HCpwX7nDaWn1xXGGEgWm2UxRp6z9vG8PPjWS0D6zinST0f0cr9ScHzy x7jRGfvYu+iHtE5tGMGDMYhg1utaqnkg3M/goU6O0Bfby7a9eMLYn+kXuIdI37e3 vSttwuT0gcHGwrsMFFarBdQ9R/RkjRnZAFdNvWEYopa368LO8bpv/sY1uNeoDNOg PChiIZF/z97wECb9PKYmXp4sdDpM+c2LqQg+LFHWibqtzAbygK3Jtm9bNsUuOCKP U0B4bjdUc6crnJ8khQmrRFqLAwKdjcc59kwbFC0gLQHcA+aFxi9refYRyY/Xhxc/ 53DgPbPPQjIzMpbe21b+yw7IW/0IE70imTz7q+lBWXqo/gAZPLcJEtN3v3zd5AAd dfL2gXsFFJRYHuWnCUYn9mX48FnjKjr4ZcKwgfXgAs6EhUWlxsFB5HxA6txGnxXf 8xV6iS/tIw6IwU9tXiWF33QVXOfjVnc05kdvM+btJBwQtKUJIsF5qIgYN7qcS2Aw RAXNWZi2nESpKcX0nJLwyvPwYoqmI6k79iLMvCFDliDDOTAXN0c= =/Pj2 -----END PGP SIGNATURE----- --curqSLtO4F5mndYD--