This is an automated email from the git hooks/post-receive script.
logari81 pushed a commit to branch master
in repository getfem.
The following commit(s) were added to refs/heads/master by this push:
new fb5151f5 Rename misleading autotools/cmake configure option
fb5151f5 is described below
commit fb5151f50a5b4c76c0abddb4c07c84f36bcf5634
Author: Konstantinos Poulios <[email protected]>
AuthorDate: Thu Feb 5 13:24:34 2026 +0100
Rename misleading autotools/cmake configure option
- "NOT ENABLE_MULTITHREADED_BLAS" is now replaced by
"ENABLE_FORCE_SINGLETHREAD_BLAS"
---
CMakeLists.txt | 8 ++++----
configure.ac | 20 ++++++++++----------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 70937a45..ff342cf8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,8 +35,8 @@ option(ENABLE_QHULL "Enable Qhull support" ON)
# Configure options for enabling/disabling linear solvers (at least one is
required)
option(ENABLE_SUPERLU "Enable SuperLU support" ON) # might be turned off by
cmake if SuperLU is not found
option(ENABLE_MUMPS "Enable MUMPS support" ON) # might be turned off by
cmake if MUMPS is not found
-# Configure option for enabling/disabling multithreaded BLAS (requires the dl
library)
-option(ENABLE_MULTITHREADED_BLAS "Enable multithreaded blas support" OFF)
+# Configure option for forcing single threaded BLAS at runtime (requires the
dl library)
+option(ENABLE_FORCE_SINGLETHREAD_BLAS "Enable switching to singlethreaded blas
at runtime" ON)
option(GENERATE_GETFEM_IM_LIST_H "Run perl script that (re-)generates header
file with integration methods" ON)
option(BUILD_SHARED_LIBS "Build libraries as SHARED, equivalent to
BUILD_LIBRARY_TYPE=SHARED" ON)
@@ -659,7 +659,7 @@ else()
message("Building with Qhull explicitly disabled")
endif()
-if(NOT ENABLE_MULTITHREADED_BLAS)
+if(ENABLE_FORCE_SINGLETHREAD_BLAS)
find_library(DL_LIB NAMES dl)
set(CMAKE_REQUIRED_LIBRARIES ${DL_LIB})
check_library_exists(dl dlsym "" HAVE_DLSYM)
@@ -686,7 +686,7 @@ message(STATUS " ENABLE_OPENMP: ${ENABLE_OPENMP}")
message(STATUS " ENABLE_SUPERLU: ${ENABLE_SUPERLU}")
message(STATUS " ENABLE_MUMPS: ${ENABLE_MUMPS}")
message(STATUS " ENABLE_QHULL: ${ENABLE_QHULL}")
-message(STATUS " ENABLE_MULTITHREADED_BLAS: ${ENABLE_MULTITHREADED_BLAS}")
+message(STATUS " ENABLE_FORCE_SINGLETHREAD_BLAS:
${ENABLE_FORCE_SINGLETHREAD_BLAS}")
message(STATUS "GetFEM version ${GETFEM_VERSION}")
# Generate configuration header files for gmm and getfem
diff --git a/configure.ac b/configure.ac
index 71eb51c5..4fcd6f77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -744,26 +744,26 @@ AM_CONDITIONAL(LAPACK, test x$acx_lapack_ok = xyes)
dnl -----------------------------END OF LAPACK TEST--------------------------
-dnl ---------------------------multithread-blas--------------------------
+dnl ------------------------force-singlethread-blas--------------------------
-multithread_blas=NO
-AC_ARG_ENABLE(multithread-blas,
- [AS_HELP_STRING([--enable-multithread-blas],[enable openblas to be
multithreaded])],
+force_singlethread_blas=YES
+AC_ARG_ENABLE(force-singlethread-blas,
+ [AS_HELP_STRING([--enable-force-singlethread-blas],[enable switching to
single threaded openblas at runtime])],
[ case $enableval in
- yes | "") multithread_blas=YES;;
- no) multithread_blas=NO;;
- *) AC_MSG_ERROR([bad value ${enableval} for
--enable-multithread-blas], [multithread_blas=NO]) ;;
+ yes | "") force_singlethread_blas=YES;;
+ no) force_singlethread_blas=NO;;
+ *) AC_MSG_ERROR([bad value ${enableval} for
--enable-force-singlethread-blas], [force_singlethread_blas=YES]) ;;
esac
])
-if test x$multithread_blas = xNO; then
+if test x$force_singlethread_blas = xYES; then
AC_CHECK_LIB(dl, dlsym, [acx_dl_ok=yes; DL_LIBS="-ldl"])
if test x"$acx_dl_ok" = xyes; then
- AC_DEFINE(GETFEM_FORCE_SINGLE_THREAD_BLAS,,[enable openblas to be
multithreaded])
+ AC_DEFINE(GETFEM_FORCE_SINGLE_THREAD_BLAS,,[enable switching to single
threaded openblas at runtime])
LIBS="$DL_LIBS $LIBS"
fi
fi;
-dnl --------------------------end of multithread-blas--------------------
+dnl ------------------------end of force-singlethread-blas-------------------