guix_mirror_bot pushed a commit to branch hpc-team
in repository guix.

commit 4c7f23afd77d5378fbac83bb06c8261d5cfd07f4
Author: Romain GARBAGE <[email protected]>
AuthorDate: Tue Jan 20 15:02:06 2026 +0100

    maths: openblas: Enable OpenMP support.
    
    * gnu/packages/maths.scm (openblas): Enable OpenMP support.
    
    Change-Id: I72b8badb6d1d627854717ddcbdceab8302114eaf
---
 gnu/packages/maths.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index e9c4ec65e9..5f674a1751 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6104,6 +6104,13 @@ parts of it.")
               ;; obviously wrong.
               "NUM_THREADS=128"
 
+              ;; OpenMP support prevents deadlocks when multithreaded Openblas
+              ;; is called from an OpenMP parallel region and takes care of
+              ;; deactivating threads when necessary. See
+              ;; 
http://www.openmathlib.org/OpenBLAS/docs/faq/#using-openblas-with-openmp
+              ;; for more details.
+              "USE_OPENMP=1"
+
               ;; DYNAMIC_ARCH is only supported on some architectures.
               ;; DYNAMIC_ARCH combined with TARGET=GENERIC provides a library
               ;; which uses the optimizations for the detected CPU.  This can

Reply via email to