guix_mirror_bot pushed a commit to branch hpc-team
in repository guix.
commit 8e7d9e9998b4914c053756a6d5c7700c28cbd39c
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 102571025e..54a14f4b08 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6069,6 +6069,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