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

travis: added arm64, ppc64le and s390x tests with simde #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/simde"]
path = lib/simde
url = https://github.com/nemequ/simde.git
25 changes: 20 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
language: c
compiler:
- gcc
- clang
script: make
matrix:
include:
- language: c
compiler: gcc
script: make
- language: c
compiler: clang
script: make
- arch: arm64
language: c
compiler: gcc
script: make simde=1
- arch: ppc64le
language: c
compiler: gcc
script: make simde=1
- arch: s390x
language: c
compiler: gcc
script: make simde=1
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ INCLUDES=
LIBS= -lm -lz -lpthread
SUBDIRS= .

ifneq ($(simde),)
CFLAGS += -DUSE_SIMDE -DSIMDE_ENABLE_NATIVE_ALIASES -DSIMDE_ENABLE_OPENMP -fopenmp-simd
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the explanation of -fopenmp-simd.
https://gcc.gnu.org/legacy-ml/gcc-patches/2013-10/msg02275.html

And here is the explanation of SIMDE_ENABLE_OPENMP in the simde README.md.

For best performance, in addition to -O3 (or whatever your compiler's equivalent is), you should enable OpenMP 4 SIMD support by defining SIMDE_ENABLE_OPENMP before including any SIMDe headers, and enabling OpenMP support in your compiler.

INCLUDES += -Ilib/simde
endif

ifeq ($(shell uname -s),Linux)
LIBS += -lrt
endif
Expand Down
4 changes: 4 additions & 0 deletions ksw.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#ifdef USE_SIMDE
#include <simde/x86/sse2.h>
#else
#include <emmintrin.h>
#endif
#include "ksw.h"

#ifdef USE_MALLOC_WRAPPERS
Expand Down
1 change: 1 addition & 0 deletions lib/simde
Submodule simde added at 47aeca