Skip to content

Commit

Permalink
Added travisCI example + fix to Makefile for SIMDe
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrcic committed May 18, 2020
1 parent ccb0f7b commit 5eb9103
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ matrix:
language: c
compiler: gcc
script: make arm_neon=1 aarch64=1
- arch: arm64
language: c
compiler: gcc
script: make -f Makefile.simde arm_neon=1 aarch64=1
- language: python
python: "2.7"
before_install: pip install cython
Expand Down
13 changes: 9 additions & 4 deletions Makefile.simde
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ OBJS= kthread.o kalloc.o misc.o bseq.o sketch.o sdust.o options.o index.o chain
PROG= minimap2
PROG_EXTRA= sdust minimap2-lite
LIBS= -lm -lz -lpthread
SSE4=


ifneq ($(arm_neon),) # if arm_neon is defined
Expand All @@ -16,6 +17,10 @@ else #if aarch64 is defined
endif
endif

ifeq ($(sse2only),) #if sse2only is not defined
SSE4+=-D__SSE4_1__
endif

ifneq ($(asan),)
CFLAGS+=-fsanitize=address
LIBS+=-fsanitize=address
Expand Down Expand Up @@ -49,16 +54,16 @@ sdust:sdust.c kalloc.o kalloc.h kdq.h kvec.h kseq.h ketopt.h sdust.h
$(CC) -D_SDUST_MAIN $(CFLAGS) $< kalloc.o -o $@ -lz

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

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

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

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

# other non-file targets

Expand Down

0 comments on commit 5eb9103

Please sign in to comment.