guix_mirror_bot pushed a commit to branch hpc-team
in repository guix.
commit 3a1a769fb68046a0198fe3d32e9bd71fc998882e
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 07eedbede0..c3c7213cb8 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6103,6 +6103,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