Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64 platform support #45

Open
darmac opened this issue Apr 27, 2020 · 0 comments
Open

aarch64 platform support #45

darmac opened this issue Apr 27, 2020 · 0 comments

Comments

@darmac
Copy link

darmac commented Apr 27, 2020

I want use it on my aarch64(arm64) platform.
It means I must use SSE2NEON.h instead of emmintrin.h in ksw.c.
and the arm version gcc cannot use "-mpopcnt" and "-mssse3".

So we need this patch for aarch64 platform:

diff --git a/Makefile b/Makefile
index 0802f65..3816b6e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,9 @@ VERSION=1.0.0
 MINOR_VER=20140314
 CC=gcc
 ifdef DEBUG
-CFLAGS=-g3 -W -Wall -O0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -mssse3
+CFLAGS=-g3 -W -Wall -O0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 else
-CFLAGS=-W -Wall -O4 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -mssse3
+CFLAGS=-W -Wall -O4 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 endif
 INSTALLDIR=/usr/local/bin
 GLIBS=-lm -lpthread
diff --git a/ksw.c b/ksw.c
index 15dd0f2..22641ed 100644
--- a/ksw.c
+++ b/ksw.c
@@ -25,7 +25,7 @@

 #include <stdlib.h>
 #include <stdint.h>
-#include <emmintrin.h>
+#include "SSE2NEON.h"
 #include "ksw.h"

 #ifdef USE_MALLOC_WRAPPERS

Is there any one can help us merge this feature to smartdenovo ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant