Skip to content

Commit 5eb9103

Browse files
committed
Added travisCI example + fix to Makefile for SIMDe
1 parent ccb0f7b commit 5eb9103

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ matrix:
1010
language: c
1111
compiler: gcc
1212
script: make arm_neon=1 aarch64=1
13+
- arch: arm64
14+
language: c
15+
compiler: gcc
16+
script: make -f Makefile.simde arm_neon=1 aarch64=1
1317
- language: python
1418
python: "2.7"
1519
before_install: pip install cython

Makefile.simde

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ OBJS= kthread.o kalloc.o misc.o bseq.o sketch.o sdust.o options.o index.o chain
66
PROG= minimap2
77
PROG_EXTRA= sdust minimap2-lite
88
LIBS= -lm -lz -lpthread
9+
SSE4=
910

1011

1112
ifneq ($(arm_neon),) # if arm_neon is defined
@@ -16,6 +17,10 @@ else #if aarch64 is defined
1617
endif
1718
endif
1819

20+
ifeq ($(sse2only),) #if sse2only is not defined
21+
SSE4+=-D__SSE4_1__
22+
endif
23+
1924
ifneq ($(asan),)
2025
CFLAGS+=-fsanitize=address
2126
LIBS+=-fsanitize=address
@@ -49,16 +54,16 @@ sdust:sdust.c kalloc.o kalloc.h kdq.h kvec.h kseq.h ketopt.h sdust.h
4954
$(CC) -D_SDUST_MAIN $(CFLAGS) $< kalloc.o -o $@ -lz
5055

5156
ksw2_ll_simde.o:ksw2_ll_sse.c ksw2.h kalloc.h
52-
$(CC) -c $(CFLAGS) -msse2 $(CPPFLAGS) $(INCLUDES) $< -o $@
57+
$(CC) -c $(CFLAGS) -D__SSE2__ $(CPPFLAGS) $(INCLUDES) $< -o $@
5358

5459
ksw2_extz2_simde.o:ksw2_extz2_sse.c ksw2.h kalloc.h
55-
$(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
60+
$(CC) -c $(CFLAGS) -D__SSE2__ $(SSE4) $(CPPFLAGS) $(INCLUDES) $< -o $@
5661

5762
ksw2_extd2_simde.o:ksw2_extd2_sse.c ksw2.h kalloc.h
58-
$(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
63+
$(CC) -c $(CFLAGS) -D__SSE2__ $(SSE4) $(CPPFLAGS) $(INCLUDES) $< -o $@
5964

6065
ksw2_exts2_simde.o:ksw2_exts2_sse.c ksw2.h kalloc.h
61-
$(CC) -c $(CFLAGS) -msse4.1 $(CPPFLAGS) $(INCLUDES) $< -o $@
66+
$(CC) -c $(CFLAGS) -D__SSE2__ $(SSE4) $(CPPFLAGS) $(INCLUDES) $< -o $@
6267

6368
# other non-file targets
6469

0 commit comments

Comments
 (0)