-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
7f5db31
commit dd69c77
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
sci-biology/mmseqs2/files/mmseqs2-13.0-properly-handle-cpuflags.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1a677e3..df1d765 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -56,23 +56,29 @@ if (HAVE_AVX2) | ||
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mavx2 -mcx16 -Wa,-q") | ||
endif () | ||
set(X64 1) | ||
-elseif (HAVE_SSE4_1) | ||
+endif () | ||
+if (HAVE_SSE4_1) | ||
set(MMSEQS_ARCH "${MMSEQS_ARCH} -msse4.1 -mcx16") | ||
set(X64 1) | ||
-elseif (HAVE_SSE2) | ||
+endif () | ||
+if (HAVE_SSE2) | ||
set(MMSEQS_ARCH "${MMSEQS_ARCH} -msse2") | ||
set(DISABLE_IPS4O 1) | ||
set(X64 1) | ||
-elseif (HAVE_POWER9) | ||
+endif () | ||
+if (HAVE_POWER9) | ||
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mcpu=power9 -mvsx") | ||
set(PPC64 1) | ||
-elseif (HAVE_POWER8) | ||
+endif () | ||
+if (HAVE_POWER8) | ||
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mcpu=power8 -mvsx") | ||
set(PPC64 1) | ||
-elseif (HAVE_ARM8) | ||
+endif () | ||
+if (HAVE_ARM8) | ||
set(MMSEQS_ARCH "${MMSEQS_ARCH} -march=armv8-a+simd") | ||
set(ARM 1) | ||
-elseif (HAVE_S390X) | ||
+endif () | ||
+if (HAVE_S390X) | ||
set(MMSEQS_ARCH "${MMSEQS_ARCH} -mzarch -march=z14") | ||
set(ZARCH 1) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters