[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/16: gnu: OpenBLAS: Incorporate grafted changes.
From: |
guix-commits |
Subject: |
15/16: gnu: OpenBLAS: Incorporate grafted changes. |
Date: |
Tue, 8 Oct 2019 15:24:57 -0400 (EDT) |
mbakke pushed a commit to branch staging
in repository guix.
commit a4384dc970df534a2d1e96570e1e98abd8c85cd7
Author: Marius Bakke <address@hidden>
Date: Tue Oct 8 21:01:43 2019 +0200
gnu: OpenBLAS: Incorporate grafted changes.
* gnu/packages/maths.scm (openblas)[replacement]: Remove.
[arguments]: Add NUM_THREADS in #:make-flags.
(openblas/fixed-num-threads): Remove variable.
---
gnu/packages/maths.scm | 29 +++++++----------------------
1 file changed, 7 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index fe9d59b..2664315 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3106,10 +3106,6 @@ parts of it.")
(define-public openblas
(package
- ;; TODO: Incorporate 'openblas/fixed-num-threads' changes on the next
- ;; rebuild cycle.
- (replacement openblas/fixed-num-threads)
-
(name "openblas")
(version "0.3.6")
(source
@@ -3137,6 +3133,13 @@ parts of it.")
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
"SHELL=bash"
"MAKE_NB_JOBS=0" ;use jobserver for submakes
+
+ ;; This is the maximum number of threads OpenBLAS will ever use
(that
+ ;; is, if $OPENBLAS_NUM_THREADS is greater than that, then
NUM_THREADS
+ ;; is used.) If we don't set it, the makefile sets it to the
number
+ ;; of cores of the build machine, which is obviously wrong.
+ "NUM_THREADS=128"
+
;; Build the library for all supported CPUs. This allows
;; switching CPU targets at runtime with the environment variable
;; OPENBLAS_CORETYPE=<type>, where "type" is a supported CPU type.
@@ -3191,24 +3194,6 @@ parts of it.")
(synopsis "Optimized BLAS library based on GotoBLAS (ILP64 version)")
(license license:bsd-3)))
-(define openblas/fixed-num-threads
- ;; TODO: Move that to 'openblas' proper on the next rebuild cycle.
- (package
- (inherit openblas)
- (version (match (string-split (package-version openblas) #\.)
- ((numbers ... (= string-length len))
- (string-join (append numbers
- (list (make-string len #\a)))
- "."))))
- (arguments
- (substitute-keyword-arguments (package-arguments openblas)
- ((#:make-flags flags ''())
- ;; This is the maximum number of threads OpenBLAS will ever use (that
- ;; is, if $OPENBLAS_NUM_THREADS is greater than that, then NUM_THREADS
- ;; is used.) If we don't set it, the makefile sets it to the number
- ;; of cores of the build machine, which is obviously wrong.
- `(cons "NUM_THREADS=128" ,flags))))))
-
(define* (make-blis implementation #:optional substitutable?)
"Return a BLIS package with the given IMPLEMENTATION (see config/ in the
source tree for a list of implementations.)
- 01/16: gnu: libwebp: Remove obsolete phase., (continued)
- 01/16: gnu: libwebp: Remove obsolete phase., guix-commits, 2019/10/08
- 08/16: gnu: lz4: Update to 1.9.2., guix-commits, 2019/10/08
- 06/16: gnu: nss, nss-certs: Update to 3.46.1., guix-commits, 2019/10/08
- 02/16: gnu: tzdata: Update to 2019c., guix-commits, 2019/10/08
- 07/16: gnu: bluez: Update to 5.51., guix-commits, 2019/10/08
- 04/16: gnu: imagemagick: Update to 6.9.10-68., guix-commits, 2019/10/08
- 05/16: gnu: nspr: Update to 4.22., guix-commits, 2019/10/08
- 14/16: gnu: libical: Update to 3.0.6., guix-commits, 2019/10/08
- 16/16: gnu: OpenBLAS: Update to 0.3.7., guix-commits, 2019/10/08
- 09/16: gnu: libogg: Update to 1.3.4., guix-commits, 2019/10/08
- 15/16: gnu: OpenBLAS: Incorporate grafted changes.,
guix-commits <=
- 10/16: gnu: gdk-pixbuf: Update to 2.40.0., guix-commits, 2019/10/08
- 12/16: gnu: libinput: Update to 1.14.1., guix-commits, 2019/10/08
- 13/16: gnu: libgit2: Update to 0.28.3., guix-commits, 2019/10/08
- 03/16: gnu: libfaketime: Update to 0.9.8., guix-commits, 2019/10/08
- 11/16: gnu: gtk+: Update to 3.24.12., guix-commits, 2019/10/08