From b1e719993d5cbc7e14c7d50950b097ee74f7d328 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 30 Oct 2021 01:42:15 -0500 Subject: 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 --- sci-libs/dealii/dealii-9.3.1-r1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sci-libs/dealii') 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 -- cgit v1.2.3-65-gdbad