guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: openblas: Fix building on powerpc64le-linux.


From: guix-commits
Subject: 02/03: gnu: openblas: Fix building on powerpc64le-linux.
Date: Wed, 7 Jul 2021 02:14:34 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 4b4d4d7baef00df6e5b8ee14359195292fd37e36
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 6 16:23:30 2021 +0300

    gnu: openblas: Fix building on powerpc64le-linux.
    
    * gnu/packages/maths.scm (openblas)[arguments]: Add make-flags to enable
    building for powerpc64le-linux.
---
 gnu/packages/maths.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 3d3d20d..cd40e8e 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3843,13 +3843,17 @@ parts of it.")
              ;; 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.
-             ;; Unfortunately, this is not supported on non-x86 architectures,
+             ;; Unfortunately, this is not supported on all architectures,
              ;; where it leads to failed builds.
              ,@(let ((system (or (%current-target-system) (%current-system))))
                  (cond
                   ((or (string-prefix? "x86_64" system)
                        (string-prefix? "i686" system))
                    '("DYNAMIC_ARCH=1"))
+                  ;; On some of these architectures the CPU can't be detected.
+                  ((string-prefix? "powerpc64le" system)
+                   '("DYNAMIC_ARCH=1"
+                     "TARGET=GENERIC"))
                   ;; On MIPS we force the "SICORTEX" TARGET, as for the other
                   ;; two available MIPS targets special extended instructions
                   ;; for Loongson cores are used.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]