Skip to content

Commit dd69c77

Browse files
sci-biology/mmseqs2: properly respect the cpu flags
Upstream PR is here: soedinglab/MMseqs2#533 See also: #1143 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <[email protected]>
1 parent 7f5db31 commit dd69c77

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 1a677e3..df1d765 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -56,23 +56,29 @@ if (HAVE_AVX2)
6+
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mavx2 -mcx16 -Wa,-q")
7+
endif ()
8+
set(X64 1)
9+
-elseif (HAVE_SSE4_1)
10+
+endif ()
11+
+if (HAVE_SSE4_1)
12+
set(MMSEQS_ARCH "${MMSEQS_ARCH} -msse4.1 -mcx16")
13+
set(X64 1)
14+
-elseif (HAVE_SSE2)
15+
+endif ()
16+
+if (HAVE_SSE2)
17+
set(MMSEQS_ARCH "${MMSEQS_ARCH} -msse2")
18+
set(DISABLE_IPS4O 1)
19+
set(X64 1)
20+
-elseif (HAVE_POWER9)
21+
+endif ()
22+
+if (HAVE_POWER9)
23+
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mcpu=power9 -mvsx")
24+
set(PPC64 1)
25+
-elseif (HAVE_POWER8)
26+
+endif ()
27+
+if (HAVE_POWER8)
28+
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mcpu=power8 -mvsx")
29+
set(PPC64 1)
30+
-elseif (HAVE_ARM8)
31+
+endif ()
32+
+if (HAVE_ARM8)
33+
set(MMSEQS_ARCH "${MMSEQS_ARCH} -march=armv8-a+simd")
34+
set(ARM 1)
35+
-elseif (HAVE_S390X)
36+
+endif ()
37+
+if (HAVE_S390X)
38+
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mzarch -march=z14")
39+
set(ZARCH 1)
40+
endif ()

sci-biology/mmseqs2/mmseqs2-13.0.ebuild renamed to sci-biology/mmseqs2/mmseqs2-13.0-r1.ebuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ RDEPEND="
2727
"
2828
DEPEND="${RDEPEND}"
2929

30+
PATCHES=(
31+
"${FILESDIR}/${P}-properly-handle-cpuflags.patch"
32+
)
33+
3034
src_configure() {
3135
local mycmakeargs=(
3236
# Need static libs: https://github.com/soedinglab/MMseqs2/issues/411

0 commit comments

Comments
 (0)