From 3656139f7e541c72c25f76f03318fe4a4142e3ec Mon Sep 17 00:00:00 2001 From: Romain GARBAGE Date: Tue, 20 Jan 2026 15:02:06 +0100 Subject: [PATCH] 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 579f0858b3..1f1f39a414 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