Skip to content

Commit

Permalink
meryl: add linux-aarch64 and osx-arm64 build (#52237)
Browse files Browse the repository at this point in the history
* meryl: add linux-aarch64 build

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

* add aarch64 patch

* Update build.sh

* try arm64

* Update meta.yaml

* meryl: Use git_url to be able to patch the Git submodule meryl-utility

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

* meryl: patch align-ssw.C for ARM64 too

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

* Update meta.yaml

* Update build.sh

* Update meta.yaml

---------

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Co-authored-by: mencian <joshua.zhuang@yahoo.com>
Co-authored-by: Joshua Zhuang <71105179+mencian@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 20, 2024
1 parent 0afa1f0 commit f2004bc
Show file tree
Hide file tree
Showing 4 changed files with 9,378 additions and 5 deletions.
14 changes: 14 additions & 0 deletions recipes/meryl/0003-align.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/src/utility/src/align/align-ksw2-extz2-sse.C b/src/utility/src/align/align-ksw2-extz2-sse.C
index d237b48..f96c6fa 100644
--- a/src/utility/src/align/align-ksw2-extz2-sse.C
+++ b/src/utility/src/align/align-ksw2-extz2-sse.C
@@ -304,6 +304,8 @@ void ksw_extz2_sse(void *km, int qlen, const uint8_t *query, int tlen, const uin
kfree(km, mem2); kfree(km, off);
}
}
-#endif // __SSE2__

} // merylutil::align::ksw2::v1
+
+#endif // __SSE2__
+
9 changes: 8 additions & 1 deletion recipes/meryl/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/bash

set -xe

ARCH_BUILD="-m64 -msse4.1"
case $(uname -m) in
arm64|aarch64) ARCH_BUILD="" ;;
esac

make -C src BUILD_DIR="$(pwd)" \
TARGET_DIR="${PREFIX}" \
CXX="${CXX}" \
CXXFLAGS="${CXXFLAGS} -O3 -I${PREFIX}/include" \
CXXFLAGS="${CXXFLAGS} -O3 -Wno-c++20-extensions -Wno-inline-namespace-reopened-noninline -Wno-format ${ARCH_BUILD} -I${PREFIX}/include" \
LDFLAGS="${LDFLAGS} -fopenmp -L${PREFIX}/lib" -j"${CPU_COUNT}"
Loading

0 comments on commit f2004bc

Please sign in to comment.