From patchwork Tue Feb 11 17:58:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 20222 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0867917BBF; Tue, 11 Feb 2020 18:00:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B097217BBA for ; Tue, 11 Feb 2020 18:00:23 +0000 (GMT) Received: from localhost ([::1]:54870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1Zpf-0004qB-1e for patchwork@mira.cbaines.net; Tue, 11 Feb 2020 13:00:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38344) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1ZpP-0004kv-BX for guix-patches@gnu.org; Tue, 11 Feb 2020 13:00:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1ZpL-0002X4-Ld for guix-patches@gnu.org; Tue, 11 Feb 2020 13:00:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1ZpL-0002UA-60 for guix-patches@gnu.org; Tue, 11 Feb 2020 13:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j1ZpL-0000B7-1U for guix-patches@gnu.org; Tue, 11 Feb 2020 13:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38546] [PATCH v4] Update Julia 1.3.1: almost done References: <87v9qpvbyr.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87v9qpvbyr.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 11 Feb 2020 18:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38546 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38546@debbugs.gnu.org, =?utf-8?q?Nicol=C3=B2?= Balzarotti Received: via spool by 38546-submit@debbugs.gnu.org id=B38546.1581443964606 (code B ref 38546); Tue, 11 Feb 2020 18:00:02 +0000 Received: (at 38546) by debbugs.gnu.org; 11 Feb 2020 17:59:24 +0000 Received: from localhost ([127.0.0.1]:57501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1ZoX-00009V-Bk for submit@debbugs.gnu.org; Tue, 11 Feb 2020 12:59:24 -0500 Received: from mail-qt1-f174.google.com ([209.85.160.174]:44208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1ZoR-00009F-W1 for 38546@debbugs.gnu.org; Tue, 11 Feb 2020 12:59:11 -0500 Received: by mail-qt1-f174.google.com with SMTP id w8so8606331qts.11 for <38546@debbugs.gnu.org>; Tue, 11 Feb 2020 09:59:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rD3t+zVdwartwo1plXBNs2QImB8z2T+6eES043nREPo=; b=NE5QfN7x1YznvjK7I6bE7l6pX41DI9yiehDd7zHSv04pDXq/iBE3+1dUzbik3SUEX7 GGFJgAZMSmhr9gU4ws4XeSQ1l7bQiZ3GOo3TZx2lIXV4xbZovgfP+qLcG3tmMC09dadd xGceQVhQn+Mm65K1H3RLj08jNA/JfcO4FjSn9c83OdzOsxgKA4OvjQkolEGxMEvD2MNg gzsvEKpBr5mm/hrE5W4Sj7cRchXSrC/PoS8JU9hVnVI5Zkb1YUntG3r6Ju4iiIJR+2ZZ zl5Yqc1N4nQOU4GcvEQ4FgqB0TUszGcDq6a1xCtlQDrM+rbhZvEfNzRfhPOpuot/aPqe zcJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rD3t+zVdwartwo1plXBNs2QImB8z2T+6eES043nREPo=; b=bJoUDRobg9wIHhYaluQFMMNLZWOIh2VJKdWNckGIVRjaPt43P+V6qRaPkAI9aOnDfL 1imyZwlSbE4go4vpg+Pfr4bkXc2DTwdW7Qmz6avdGYvsss4u0ZI/8ixPpQnDP8huf9vH d82tIttXuIauhCRg1tYTcKCaoAvyUGPk2tFdMHEGDhMhKvLgCDRtiqhGzLC2zZkkXHIG cP1SqbLCsnkXJnSEYTq4ni0v6xKVPOf4aaIeiNWuhP7f0RRf06FzYIdkfRMqvjkH0COv j3FN5u0avbIna/hcipQPeZl+XoYMb1cOD73uOodc3il80MtYFN3oygIQGPdBy0NeAvAv 2ssw== X-Gm-Message-State: APjAAAVgZu0pLTPboiSCdLSamdyum/hVrftLgedyWcWlLhrRY7fjWjjQ qnzwvUbr/1LDPtJS6t9Uous69v3QM0Mn4sSo09OJntsv X-Google-Smtp-Source: APXvYqzw8QzSFmW1Eo7IfrZjN2Ftz4H0kQRoLYIPV0OfV3DjDrYz/4Uf667UwV0sO1Y2Uu4H0Ex4LM5h98B0fP43SJI= X-Received: by 2002:ac8:6bc1:: with SMTP id b1mr3460518qtt.313.1581443941890; Tue, 11 Feb 2020 09:59:01 -0800 (PST) MIME-Version: 1.0 From: zimoun Date: Tue, 11 Feb 2020 18:58:50 +0100 Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, Please find attach the almost updated julia using 2 patches. The first add a dependency and the second update and patch. I hope that I do not screw up the indentation; sometimes my Emacs does weird stuff. Anyway. If it is fine with you, please ping Ludo or any committer. :-) Cheers, simon From c9fb979b67f15ff9f4744af21d1e91017037af17 Mon Sep 17 00:00:00 2001 From: nixo Date: Sat, 28 Dec 2019 00:10:48 +0100 Subject: [PATCH v4 1/2] gnu: Add dsfmt. * gnu/packages/maths.scm (dsfmt): New variable. --- gnu/packages/maths.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 8f4478b6bb..1f80cb3f3a 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -33,6 +33,7 @@ ;;; Copyright © 2019 Nicolas Goaziou ;;; Copyright © 2019 Steve Sprang ;;; Copyright © 2019 Robert Smith +;;; Copyright © 2019 Nicolò Balzarotti ;;; ;;; This file is part of GNU Guix. ;;; @@ -372,6 +373,70 @@ semiconductors.") (license license:gpl3+) (home-page "https://www.gnu.org/software/dionysus/"))) +(define-public dsfmt + (package + (name "dsfmt") + (version "2.2.3") + (source (origin + (method url-fetch) + (uri + (string-append + "http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-" + version ".tar.gz")) + (sha256 + (base32 + "03kaqbjbi6viz0n33dk5jlf6ayxqlsq4804n7kwkndiga9s4hd42")) + ;; julia needs those (and is the only program depending on dsfmt now) + (patches + (list + (origin (method url-fetch) + (uri + "https://raw.githubusercontent.com/JuliaLang/julia/v1.3.0/deps/patches/dSFMT.c.patch") + (sha256 (base32 "09mhv11bms8jsmkmdqvlcgljwhzw3b6n9nncpi2b6dla9798hw2y")) + (file-name "dSFMT.c.patch")) + (origin (method url-fetch) + (uri + "https://raw.githubusercontent.com/JuliaLang/julia/v1.3.0/deps/patches/dSFMT.h.patch") + (sha256 (base32 "1py5rd0yxic335lzka23f6x2dhncrpizpyrk57gi2f28c0p98y5n")) + (file-name "dSFMT.h.patch")))))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) ;no configure script + (replace 'build + ;; upstream Makefile does not build a shared library + (lambda _ + (invoke + "gcc" + ;; flags copied from julia + ;; https://github.com/JuliaLang/julia/blob/v1.3.0/deps/dsfmt.mk + "-DNDEBUG" "-DDSFMT_MEXP=19937" + "-fPIC" "-DDSFMT_DO_NOT_USE_OLD_NAMES" + "-O3" "-finline-functions" "-fomit-frame-pointer" + "-fno-strict-aliasing" "--param" "max-inline-insns-single=1800" + "-Wmissing-prototypes" "-Wall" "-std=c99" "-shared" "dSFMT.c" + "-o" "libdSFMT.so"))) + (replace 'install ;no "install" target + (lambda* (#:key outputs #:allow-other-keys) + (let ((lib (string-append (assoc-ref outputs "out") + "/lib")) + (inc (string-append (assoc-ref outputs "out") + "/include"))) + (install-file "libdSFMT.so" lib) + (install-file "dSFMT.h" inc) + #t)))))) + (synopsis "Double precision SIMD-oriented Fast Mersenne Twister") + (description + "The dSMFT package speeds up Fast Mersenne Twister generation by avoiding +the expensive conversion of integer to double (floating point). dSFMT directly +generates double precision floating point pseudorandom numbers which have the +IEEE Standard for Binary Floating-Point Arithmetic (ANSI/IEEE Std 754-1985) +format. dSFMT is only available on the CPUs which use IEEE 754 format double +precision floating point numbers.") + (home-page "http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/") + (license license:bsd-3))) + (define-public gsl (package (name "gsl") -- 2.23.0