summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain GARBAGE <romain.garbage@inria.fr>2026-01-20 15:02:06 +0100
committerAndreas Enge <andreas@enge.fr>2026-03-16 10:16:29 +0100
commit3656139f7e541c72c25f76f03318fe4a4142e3ec (patch)
treea116a10194ee48074d3fac957c8e8970f55992b3
parent9e17346b663b7b1249c6bb39f1d47a6b0ae7729c (diff)
maths: openblas: Enable OpenMP support.
* gnu/packages/maths.scm (openblas): Enable OpenMP support. Change-Id: I72b8badb6d1d627854717ddcbdceab8302114eaf
-rw-r--r--gnu/packages/maths.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 579f0858b3d..1f1f39a4142 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6109,6 +6109,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