diff options
author | Matthias Maier <tamiko@gentoo.org> | 2021-10-30 01:42:15 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2021-10-30 01:44:23 -0500 |
commit | b1e719993d5cbc7e14c7d50950b097ee74f7d328 (patch) | |
tree | e4eabe5cf9671f09e9bd7a2de30ce3970a804bd6 /sci-libs/dealii | |
parent | dev-lang/python: Bump to 3.11.0a1 (diff) | |
download | gentoo-b1e719993d5cbc7e14c7d50950b097ee74f7d328.tar.gz gentoo-b1e719993d5cbc7e14c7d50950b097ee74f7d328.tar.bz2 gentoo-b1e719993d5cbc7e14c7d50950b097ee74f7d328.zip |
sci-libs/dealii: allow sse2/avx2/avx512 instructions when enabled
Closes: https://bugs.gentoo.org/820809
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/dealii')
-rw-r--r-- | sci-libs/dealii/dealii-9.3.1-r1.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sci-libs/dealii/dealii-9.3.1-r1.ebuild b/sci-libs/dealii/dealii-9.3.1-r1.ebuild index dd024050fed2..ef012f290e0f 100644 --- a/sci-libs/dealii/dealii-9.3.1-r1.ebuild +++ b/sci-libs/dealii/dealii-9.3.1-r1.ebuild @@ -8,7 +8,7 @@ EAPI=7 # any of these modules: CMAKE_REMOVE_MODULES_LIST="" -inherit cmake multilib +inherit cmake flag-o-matic multilib DESCRIPTION="Solving partial differential equations with the finite element method" HOMEPAGE="https://www.dealii.org/" @@ -138,10 +138,13 @@ src_configure() { # variables if a "higher" variant is set if use cpu_flags_x86_avx512f; then mycmakeargs+=( -DDEAL_II_HAVE_AVX512=yes ) + append-cxxflags "-mavx512f" elif use cpu_flags_x86_avx; then mycmakeargs+=( -DDEAL_II_HAVE_AVX=yes ) + append-cxxflags "-mavx2" elif use cpu_flags_x86_avx; then mycmakeargs+=( -DDEAL_II_HAVE_SSE2=yes ) + append-cxxflags "-msse2" fi cmake_src_configure |