1 |
commit: b1e719993d5cbc7e14c7d50950b097ee74f7d328 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 30 06:42:15 2021 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 30 06:44:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1e71999 |
7 |
|
8 |
sci-libs/dealii: allow sse2/avx2/avx512 instructions when enabled |
9 |
|
10 |
Closes: https://bugs.gentoo.org/820809 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
13 |
|
14 |
sci-libs/dealii/dealii-9.3.1-r1.ebuild | 5 ++++- |
15 |
1 file changed, 4 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/sci-libs/dealii/dealii-9.3.1-r1.ebuild b/sci-libs/dealii/dealii-9.3.1-r1.ebuild |
18 |
index dd024050fed..ef012f290e0 100644 |
19 |
--- a/sci-libs/dealii/dealii-9.3.1-r1.ebuild |
20 |
+++ b/sci-libs/dealii/dealii-9.3.1-r1.ebuild |
21 |
@@ -8,7 +8,7 @@ EAPI=7 |
22 |
# any of these modules: |
23 |
CMAKE_REMOVE_MODULES_LIST="" |
24 |
|
25 |
-inherit cmake multilib |
26 |
+inherit cmake flag-o-matic multilib |
27 |
|
28 |
DESCRIPTION="Solving partial differential equations with the finite element method" |
29 |
HOMEPAGE="https://www.dealii.org/" |
30 |
@@ -138,10 +138,13 @@ src_configure() { |
31 |
# variables if a "higher" variant is set |
32 |
if use cpu_flags_x86_avx512f; then |
33 |
mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) |
34 |
+ append-cxxflags "-mavx512f" |
35 |
elif use cpu_flags_x86_avx; then |
36 |
mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) |
37 |
+ append-cxxflags "-mavx2" |
38 |
elif use cpu_flags_x86_avx; then |
39 |
mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) |
40 |
+ append-cxxflags "-msse2" |
41 |
fi |
42 |
|
43 |
cmake_src_configure |