Skip to content

Commit

Permalink
sci-libs/dealii: allow sse2/avx2/avx512 instructions when enabled
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/820809
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Matthias Maier <[email protected]>
  • Loading branch information
tamiko committed Oct 30, 2021
1 parent 65efb7a commit b1e7199
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sci-libs/dealii/dealii-9.3.1-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b1e7199

Please sign in to comment.