1 |
commit: 0e143007295f7fe3fe1b5f9506817216d5eb80e2 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 28 07:37:03 2017 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 28 07:37:03 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0e143007 |
7 |
|
8 |
sci-libs/openblas: USE flags of single-threaded version. |
9 |
|
10 |
When neither openmp nor threads USE flag is set, OpenBLAS |
11 |
should build a single-threaded version with make option |
12 |
USE_THREAD=0. |
13 |
|
14 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
15 |
|
16 |
sci-libs/openblas/openblas-0.2.20.ebuild | 2 ++ |
17 |
1 file changed, 2 insertions(+) |
18 |
|
19 |
diff --git a/sci-libs/openblas/openblas-0.2.20.ebuild b/sci-libs/openblas/openblas-0.2.20.ebuild |
20 |
index c15c6eb73..838c334d6 100644 |
21 |
--- a/sci-libs/openblas/openblas-0.2.20.ebuild |
22 |
+++ b/sci-libs/openblas/openblas-0.2.20.ebuild |
23 |
@@ -40,6 +40,8 @@ get_openblas_flags() { |
24 |
openblas_flags+=( USE_THREAD=1 USE_OPENMP=0 ) |
25 |
elif use openmp; then |
26 |
openblas_flags+=( USE_OPENMP=1 ) |
27 |
+ else |
28 |
+ openblas_flags+=( USE_THREAD=0 ) # single-threaded |
29 |
fi |
30 |
local profname=$(numeric-int64_get_module_name) |
31 |
local libname="${profname//-/_}" |