aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2017-08-28 16:37:03 +0900
committerBenda Xu <heroxbd@gentoo.org>2017-08-28 16:37:03 +0900
commit0e143007295f7fe3fe1b5f9506817216d5eb80e2 (patch)
tree1d6ab921eaa8810b6e1335c69119ba1c9da1bc01
parentsys-cluster/modules: remove old (diff)
downloadsci-0e143007295f7fe3fe1b5f9506817216d5eb80e2.tar.gz
sci-0e143007295f7fe3fe1b5f9506817216d5eb80e2.tar.bz2
sci-0e143007295f7fe3fe1b5f9506817216d5eb80e2.zip
sci-libs/openblas: USE flags of single-threaded version.
When neither openmp nor threads USE flag is set, OpenBLAS should build a single-threaded version with make option USE_THREAD=0. Package-Manager: Portage-2.3.3, Repoman-2.3.1
-rw-r--r--sci-libs/openblas/openblas-0.2.20.ebuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/sci-libs/openblas/openblas-0.2.20.ebuild b/sci-libs/openblas/openblas-0.2.20.ebuild
index c15c6eb73..838c334d6 100644
--- a/sci-libs/openblas/openblas-0.2.20.ebuild
+++ b/sci-libs/openblas/openblas-0.2.20.ebuild
@@ -40,6 +40,8 @@ get_openblas_flags() {
openblas_flags+=( USE_THREAD=1 USE_OPENMP=0 )
elif use openmp; then
openblas_flags+=( USE_OPENMP=1 )
+ else
+ openblas_flags+=( USE_THREAD=0 ) # single-threaded
fi
local profname=$(numeric-int64_get_module_name)
local libname="${profname//-/_}"